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
What is linked hashmap and its features?
What is the method to expand and collapse nodes in a jtree?
What are the differences between getting and load method?
Why set do not allow duplicates in java?
How we can generate random numbers in java?
Explain the protected field modifier?
How dead lock situation occurs in java and how you can identify it?
Can a method be overloaded based on different return type but same argument type?
Explain numeric promotion?
How do you escape in java?
What two classes are used to read data only?
What is class variable java?
What is the difference between assignment and initialization?
Why multiple inheritance is not supported by java?
What do you mean by checked exceptions?