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 declaring constructor as private?

Answer Posted / anshul

A private constructor is a special instance constructor. It is commonly used in classes that contain static members only. If a class has one or more private constructors and no public constructors, then other classes (except nested classes) are not allowed to create instances of this class.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you format a date in java? I.e. In the ddmmyyy format?

1434


Is empty set an element of empty set?

1170


Can I overload to string method

1504


Can we override the overloaded method?

1195


what is meant by HQL?

1121


What is the longest unicode character?

1204


What is size_t?

1035


Can we overload the methods by making them static?

1047


What java ide should I use?

1046


What is autoboxing and unboxing?

1060


What is a singleton in genetics?

1128


What is mutable object and immutable object?

1177


How many types of variables are there?

1175


What are the different types of garbage collectors in java?

1206


What is sortedset in java?

1075