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 difference between array and arraylist in java?

989


Can we override a variable in java?

1014


Which java version is latest?

1031


What is meant by stack and queue?

1069


what is the difference between the methods sleep() and wait()? : Java thread

971


What is the purpose of javac exe?

1098


How the interruptible method gets implemented?

975


What is nullpointerexception in java?

1154


What is the difference between jdk, jre, and jvm?

1117


Explain try and catch keywords in java?

1205


Explain about serializable interface in java?

999


What is an interface in java? Explain

1193


Why should I use abstract class?

1105


Explain java coding standards for classes or java coding conventions for classes?

1126


Is string a wrapper class?

1016