what is the use of declaring constructor as private?
Answer Posted / suganya
prevent to access by other class even sub class cant have
permission to create object of that base class.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What are the important features of Java 8 release?
Why java is platform independent? Explain.
What is the symbol for average?
Highest level event class of the event-delegation model?
What are the advantages of encapsulation in java?
What are the two environment variables that must be set in order to run any java programs?
Do I need java on my computer?
What variables are stored in stack?
Where is const variable stored?
When can we say that threads are not lightweight process in java?
How is the marker interface used in Java?
Explain about the dynamic behavior of core java?
Why are lists ordered in java?
What happens if constructor is private?
Is constructor inherited?