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 do you understand by synchronization? Or what is synchronization and why is it important? Or describe synchronization in respect to multithreading? Or what is synchronization? : Java thread

947


What is garbage collector?

1082


If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?

1044


What are the advantages of unicode?

1011


What is assembly language?

981


What is the difference between a method and a procedure?

1066


Can we convert list to set in java?

998


What are new features introduced with java 8 ?

995


Difference between java and javascript

1101


Is empty list java?

930


if u open login & logout ,how can udisplay the timelogin & logout members ?

2285


EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.

9210


Why are pointers not secure?

1033


Can singleton class be cloned?

1052


What is the method in java?

1101