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 a module function?
Can you create an object of an abstract class?
Can we use string in the switch case?
List implementations of list interface?
State the main difference between c++ and java?
What is native code?
What is Hierarchy of exception?
What is an interoperable application in java ?
What is the purpose of the enableevents() method?
Does list allow duplicates in java?
What is variable explain with example?
What does the exclamation mark mean in java?
Why do we need data structure in java?
How do you create a null object?
What will be the output of round(3.7) and ceil(3.7)?