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

Is space a char?

936


What is the r character?

1027


Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?

8128


What is thread synchronization in java?

910


Which collection is ordered in java?

990


How we create object in copy constructor?

1140


Explain importance of throws keyword in java?

990


What is a dynamic array in java?

1189


Which one of the following suits the description of a string better: derived or primitive?

960


What does java edition mean?

1180


Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?

1628


What does sprintf return?

1072


What is Java Reflection API? Why it’s so important to have?

1178


What are features of java?

1038


What is meant by bytecode?

1039