πŸ“Š JAVA
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) Yes, it is a constructor

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
174
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Sonali Mishra
Publisher
πŸ“ˆ
92%
Success Rate