A

Admin • 828.03K Points
Coach

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
  • Correct Answer - Option(D)
  • Views: 16
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.