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 is the use of arraylist in java?
What are the ways in which a thread can enter the waiting state?
what is meant by HQL?
What is ctrl m character?
What do you mean by access modifier?
What is local class in java?
What is lazy programming?
What are the main uses of java?
Explain about field hiding in java?
Explain parallel processing in java8?
Why string objects are immutable in java?
What's the difference between int and integer in java?
Can we write class inside a class in java?
What are the types of sockets in java?
What are format specifiers in java?