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...

How to prevent to create multiple objects of a java class?

Answer Posted / sadiq

Using Singleton Design pattern we can prevent class creating
multiple objects.

Is This Answer Correct ?    30 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What will be the default values of all the elements of an array defined as an instance variable?

1019


Is overriding possible in java?

946


Explain enumeration in java?

994


What is java life cycle?

996


What is the difference between exception and error in java?

1006


Why we go for collections in java?

967


Why put method is used?

1000


What’s a deadlock?

1096


Is treeset sorted in java?

976


What is the purpose of format function?

1147


What are the types of strings?

1018


How do you represent a space in regex java?

1004


What is anonymous inner class?

1075


Write a program to print the pattern given below

926


Is java still relevant?

968