what is private constructor?what are the uses of writing
private constructor in our program?
Answer Posted / amit
Private constructor can be used to make a pure static
class, using it we can create only one instance of class at
the loading time.
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
How do I start learning java?
What is string syntax?
What is the static variable?
How do you use nextline in java?
What are aggregate functions explain with examples?
Can we declare a class as static?
Why does it take so much time to access an applet having swing components the first time?
Why stringbuilder is not thread safe in java?
Explain a situation where finally block will not be executed?
What does exp mean in math?
How many types of voids are there?
Can we use this () and super () in a method?
What is static keyword in java?
Is java type safe?
What is the use of hashmap in java?