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
Define an abstract class with reference to java.
What is the size of boolean variable?
Garbage collection in java?
What is volatile data type?
Is math class static in java?
What is json parser in java?
Is java a software?
Explain the features of interfaces in java?
Can we return null in java?
What is an anonymous class in java?
Why java applets are more useful for intranets as compared to internet?
What is the difference between stringbuffer and stringbuilder?
Why string objects are immutable in java?
Explain some best practices you would apply while using collection in java?
Define reflection.