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
Which class is the superclass of all classes?
Why is it called buffering?
Can a hashset contain duplicates java?
What are parsers? Dom vs sax parser.
How to stop a thread in java? Explain about sleep () method in a thread?
Can we declare an interface as final?
What is final int?
Can private class be inherited in java?
Why java is secure? Explain.
What is the default execution method in java?
What is empty list in java?
Why call by value prevents parameter value change?
Can we declare main () method as non static?
Enlist few advantages of inheritance?
What is a heavyweight component?