πŸ“Š JAVA
Q. In method overloading, can methods have the same name and the same parameter types if their return types are different?
  • (A) No, the method names must be different
  • (B) Yes, it is allowed
  • (C) No, it is not allowed
  • (D) Yes, as long as the access modifiers are different
πŸ’¬ Discuss
βœ… Correct Answer: (C) No, it is not allowed

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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