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
v-model life cycle
What are the core java topics?
Does .length start 0 java?
What is formatted output?
In a class implementing an interface, can we change the value of any variable defined in the interface?
what is instanceof operator used in java?
Can a class be private?
What is difference between c++ and java ?
What is variable explain with example?
Can we use switch statement with strings?
What are alternatives to java serialization?
Describe 2 different ways to concatenate two strings.
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
What is a dynamic array in java?
What is skeleton and stub? What is the purpose of those?