what is the use of declaring constructor as private?
Answer Posted / ravikiran
In order to restrict the class to get subclassed
Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
How is hashset defined in java?
Explain java thread life cycle.
Is space a character in java?
Difference between association, composition and aggregation?
What is ‘has a’’ relationship in java?
Explain the differences between abstraction and encapsulation?
Explain the term virtual machine?
What is a variable and constant?
Differentiate between == and equals().
Explain java heap space and garbage collection?
What is a function easy definition?
What does java ide mean?
What is a loop java?
Distinguish between a predicate and a function?
What is file in java?