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

What is byte data type?

987


What is java virtual machine and how it is considered in context of java’s platform independent feature?

1162


How many types of interfaces are there?

1057


Is void a type?

971


Why do we need hashmap in java?

1105


What is a subsequence of a string?

1050


How do you override a private method in java?

970


How are variables stored?

969


What does sizeof return?

979


Why we used vector class?

1063


Why arraylist is not synchronized in java example?

1052


Explain oops concepts in detail?

1019


Can we assign null to double in java?

1007


Why we used break and continue statement in java?

1127


What is a map? What are the implementations of map?

1087