πŸ“Š JAVA
Q. What is true about private constructor?
  • (A) Private constructor ensures only one instance of a class exist at any point of time
  • (B) Old space
  • (C) Private constructor eases the instantiation of a class
  • (D) Private constructor allows creating objects in other classes
πŸ’¬ Discuss
βœ… Correct Answer: (A) Private constructor ensures only one instance of a class exist at any point of time

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
109
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Ritu Nagar
Publisher
πŸ“ˆ
92%
Success Rate