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
Can a class be declared as protected?
Write a program in java to find the maximum and minimum value node from a circular linked list.
whatis Home interface and Remoteinterface? with example?
What is the difference between char and char *?
What is literal example?
Can we have multiple public classes in a java source file?
Can we modify the throws clause of the superclass method while overriding it in the subclass?
Why do we use string?
Write a method that will remove given character from the string?
Why pass by reference is not possible in java?
Can static methods access instance variables in java?
how many types of Inheritance?
How to perform quicksort in java?
What is the purpose of a transient variable?
What is collections framework?