πŸ“Š JAVA
Q. In Java, can a method be overloaded by changing only the return type?
  • (A) Yes, it is allowed
  • (B) Yes, but only for static methods
  • (C) No, methods with the same name must have the same return type
  • (D) No, the return type cannot be changed
πŸ’¬ Discuss
βœ… Correct Answer: (D) No, the return type cannot be changed

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
76
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Ritu Singhal
Publisher
πŸ“ˆ
80%
Success Rate