πŸ“Š JAVA
Q. What would be behaviour if the constructor has a return type?
  • (A) Compilation error
  • (B) Runtime error
  • (C) Compilation and runs successfully
  • (D) Only String return type is allowed
πŸ’¬ Discuss
βœ… Correct Answer: (A) Compilation error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
84
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Shiva Ram
Publisher
πŸ“ˆ
93%
Success Rate