Q. The implicit return type of a constructor is

  • (A) void
  • (B) A class object in which it is defined.
  • (C) There is no return type.
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) A class object in which it is defined.
Explanation: Constructors are special methods in Java used to create objects of a class.
Explanation by: Ritu Singhal
Constructors are special methods in Java used to create objects of a class.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
107
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Ritu Singhal
Publisher
πŸ“ˆ
93%
Success Rate