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
Is arraylist zero based?
Explain scope or life time of local variables in java?
What is %02d?
Explain about the main() method in java?
What is fundamental datatype?
Tell me are there implementations for sorting and searching in the java libarary?
How do you square a number?
How is java created?
How you can force the garbage collection?
what is an objects lock and which objects have locks? : Java thread
What does || || mean in math?
What is string made of?
How do you access command-line arguments within the code?
What is the tradeoff between using an unordered array versus an ordered array?
Can we have a method name same as class name in java?