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
Tell some latest versions in JAVA related areas?
What is the difference between call by reference and call by pointer?
What are dot operator queries?
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
What is the difference between a field variable and a local variable?
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?
Explain about oops concepts.
what do you mean by marker interface in java?
What is the benefit of singleton pattern?
What is byte data type?
How to make object serializable in java?
Which keyword specify that a variable is effectively final ?
What is class and its types?
Write a java program to print fibonacci series?
How will you calculate the depth of a binary tree if the tree contains 15 nodes?