πŸ“Š JAVA
Q. What is the return type of a constructor in Java?
  • (A) void
  • (B) int
  • (C) The same as the class name
  • (D) String
πŸ’¬ Discuss
βœ… Correct Answer: (C) The same as the class name

Explanation: Constructors are special methods in Java used to create objects of a class.

Explanation by: Praveen Singh
Constructors are special methods in Java used to create objects of a class.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
116
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Praveen Singh
Publisher
πŸ“ˆ
87%
Success Rate