Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the use of private constructor in core java?

Answer Posted / deep chandra harbola

private constructor are used to create Sinleton class.
example logger class
for singleton class only one object can be created.
by default member of singleton class are static.
singleton class can not be inherited.

Is This Answer Correct ?    29 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Detail discussions on JVM, memory management and garbage collector.

918


What are the states of thread in java?

917


Why should we use singleton pattern instead of static class?

886


Why is sizeof not a function?

940


What are the differences between throw and throws?

1028


What are the common uses of "this" keyword in java ?

955


How do you invoke a method?

949


What is a predicate method?

956


What does escaping a character mean?

942


What is printwriter in java?

899


What is a vararg?

959


What is an example of a keyword?

1001


How many techniques can be employed to create a string object?

1026


What is string builder?

836


What is a parameter example?

921