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 loop means?
Is java ee a framework?
Explain the selection sort algorithm and state its time complexity?
Can a class be defined inside an interface?
What do you mean by default constructor in java?
What are multiple inheritances? Is it supported by java?
What is the importance of main method in Java?
What is return keyword in java?
Can java inner class be static?
What is the difference between the prefix and postfix forms of the ++ operator?
Can we have multiple classes in a single file?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
What are daemon Threads in java?
Which eclipse is best for java?
What is the symbol for space?