πŸ“Š JAVA
Q. In method overriding, is it mandatory for the return type of the subclass method to be the same as the superclass method?
  • (A) Yes, it must be the same
  • (B) No, it can be different
  • (C) It depends on the access modifier
  • (D) It depends on the method name
πŸ’¬ Discuss
βœ… Correct Answer: (A) Yes, it must be the same

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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