what is the use of private constructor in core java?
Answer Posted / rajib
Whenever we r using singleton class then we use constructor
as private.
| Is This Answer Correct ? | 38 Yes | 6 No |
Post New Answer View All Answers
What is a for loop in java?
Explain importance of finally block in java?
Why do we need wrapper classes?
What are the difference between composition and inheritance in java?
Difference between overriding and overloading in java?
Describe the various concepts related to object oriented programming (oop).
Explain about exception propagation?
Is string is a class in java?
What are different exception types exceptions available in java ?
What are thread safe functions?
Can a abstract class be defined without any abstract methods?
What is a hashmap used for?
What is main function purpose?
How we can make copy of a java object?
Give an example of call be reference significance.