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 private constructor?what are the uses of writing
private constructor in our program?

Answer Posted / udaychow

only once instance of a particular class is allowed.through
private constructor only we can achieve singleton design
pattern.

Is This Answer Correct ?    8 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is class and its types?

1019


You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain

977


Can you tell me range of byte?

976


Can Exception handling we can handle multiple catch blocks?

1028


What is variable explain?

985


Is java util list serializable?

915


What is the purpose of void class?

1052


In case of inheritance what is the execution order of constructor and destructor?

1109


What is a buffer in computer?

981


Can you override static methods?

949


How are java objects passed to a method and what are native methods?

1060


what is synchronization? : Java thread

1005


What are the new features in java 8?

1004


What are runtime exceptions?

1151


Explain wait(), notify() and notifyall() methods of object class ?

1015