A

Admin • 828.03K Points
Coach

Q. In method overloading, can methods have the same name and the same parameter types if their access modifiers are different?

  • (A) Yes, but only for static methods
  • (B) No, it is not allowed
  • (C) No, the methods must have different parameter types
  • (D) None of These
  • Correct Answer - Option(B)
  • 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.