Question OOP-CLS-0050
MediumA class has only static methods and a private constructor, such as Java's Math. What is it used as?
- A.
An interface
- B.
A singleton with state
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Classes and Objects question
A class has only static methods and a private constructor, such as Java's Math. What is it used as?
An interface
A singleton with state
Sign up free to see the answer and a step-by-step explanation.
A utility class whose methods are called without creating objects
An abstract class