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
Explain covariant method overriding in java.
Can you declare an interface method static?
What is the purpose of checked and unchecked exceptions in JAVA?
How to display all the prime numbers between 1 and 100
Explain what is Marker interface?
What is the vector class in java programming?
What is the difference between comparison done by equals method and == operator?
What is final class?
What is a class instance variable?
What is static class
How java uses the string and stringbuffer classes?
Can you instantiate the math class?
Which variables are stored in stack?
What is Hierarchy of exception?
Explain when noclassdeffounderror will be raised ?