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

How do I get 64 bit java?

1215


What is the use of a conditional inclusion statement in Java ?

1139


Explain polymorphism citing an example.

1102


How many characters is 16 bytes?

1048


Can we initialize the final blank variable?

1130


Is string a class in java?

1035


Can interface be private in java?

1069


How can you write a loop indefinitely in java programming?

1072


Is it possible to instantiate the abstract class?

1005


Why declare Main() inside the class in java ?

1118


What is a linkedhashmap java?

1057


Can an interface have a constructor?

1028


What is sorting in java?

1035


What is the purpose of garbage collection in java? When is it used?

1093


Can you explain the cs option of java interpreter?

992