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?

Answers were Sorted based on User's Feedback



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

Answer / sadiq

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

Is This Answer Correct ?    30 Yes 3 No

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

Answer / naseer

declare constructor as private .that class only create one object

Is This Answer Correct ?    10 Yes 6 No

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

Answer / zoozoo

use collections

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Core Java Interview Questions

what is the purpose of the runtime class?

0 Answers  


What is difference between Heap and Stack Memory?

0 Answers  


If try block is successfully executed, Then Is Finally block executed?

0 Answers   PUCIT,


how to deploy tomcatserver to weblogic server? write d following steps?

0 Answers  


What is the purpose of javac exe?

0 Answers  


explain me with a code snippet about the generation and handling of null point exceptions.

1 Answers  


Is it possible to make an array volatile?

4 Answers  


How does the java compiler work?

0 Answers  


Which methods are used during serialization and deserialization process?

0 Answers  


How to disable caching on back button of the browser?

0 Answers  


Why are variables important in research?

0 Answers  


Does importing a package imports its sub-packages as well in java?

0 Answers  


Categories