A Admin • 828.43K Points Coach Q. In Java, can a method have the same name as the class? (A) Yes, it is a constructor (B) Yes, it is a static method (C) Yes, it is a public method (D) No, it is not allowed Correct Answer - Option(A) Views: 10 Filed under category Java Hashtags: Share Manage Tags
Discusssion
Login to discuss.