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 / rakesh

Private constructor can be used if we do not want any other
class to instantiate the class. This concept is generally
used in Singleton Design Pattern. The instantiation of such
classes is done from a static public method.

Is This Answer Correct ?    54 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java Applet?

1155


What is difference between static class and normal class?

1185


What are the ways to instantiate the class class?

1150


What is Recursion Function?

1265


Is map ordered in java?

996


Can an integer be a string?

1152


What are advantages and disadvantages of OOPs?

1195


What is a private class in java?

1123


How big is a 32 bit integer?

1098


What is the different types of functions?

1100


What is the purpose of sizeof operator?

1119


Is boolean a wrapper class in java?

1107


What is difference between final and immutable?

1217


What is java autoboxing?

998


What are different type of exceptions in java?

1016