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 are JVM.JRE, J2EE, JNI?

1061


Which class contains a method: cloneable or object?

997


What is the largest long allowed by java?

1014


How can an object be unreferenced?

985


What is a singleton class in Java?

988


What is class and object in java?

952


What is main difference between variable and constant?

977


Is this valid in java ? Can we instantiate interface in java?

932


How to provide security in java

2201


When should we create our own custom exception classes?

967


Is singleton class thread safe?

955


Explain the difference between throw and throws in java?

952


Is set ordered?

934


What is the difference between Java and C++?

1129


What’s meant by anonymous class?

1024