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
What is string manipulation?
What is difference between this and super keyword?
What is class variable java?
explain what is transient variable in java?
What is the difference between yielding and sleeping in java programming?
Explain java thread life cycle.
What is a condition in java?
What are exceptions
How many bits is a string?
How can you make sure that your singleton class will always return single instance in multi-threaded environment?
In how many ways we can create threads in java?
We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.
Which is dependent variable?
What is an error in java?
Define how can we find the actual size of an object on the heap?