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


Please Help Members By Posting Answers For Below Questions

Can a class have a static inner class?

611


What is binary search in java?

559


What is an 8 bit word?

598


What is a class variable?

573


What do you mean by composition in java?

572






How do you download stubs from Remote place?

1359


What is the difference between superclass and subclass?

551


Is empty list java?

527


What is the finalize method do?

605


Can the interface be final?

584


What is use of map in java?

519


Tell me about your ability to work under pressure

1772


What does math floor () do?

561


explain copyonwritearraylist and when do we use copyonwritearraylist?

549


What are the differences between string and stringbuffer?

593