what is private constructor?what are the uses of writing
private constructor in our program?
Answer Posted / udaychow
only once instance of a particular class is allowed.through
private constructor only we can achieve singleton design
pattern.
Is This Answer Correct ? | 8 Yes | 8 No |
Post New Answer View All Answers
Can a class have a static inner class?
What is binary search in java?
What is an 8 bit word?
What is a class variable?
What do you mean by composition in java?
How do you download stubs from Remote place?
What is the difference between superclass and subclass?
Is empty list java?
What is the finalize method do?
Can the interface be final?
What is use of map in java?
Tell me about your ability to work under pressure
What does math floor () do?
explain copyonwritearraylist and when do we use copyonwritearraylist?
What are the differences between string and stringbuffer?