Q. What is a constructor in Java?

  • (A) A special method to create instances of classes
  • (B) A method used for mathematical calculations
  • (C) A method to perform string manipulations
  • (D) An exception handling mechanism
πŸ’¬ Discuss
βœ… Correct Answer: (A) A special method to create instances of classes

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
151
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Ritu Nagar
Publisher
πŸ“ˆ
84%
Success Rate