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

I need to know about complete topic in java's collections i with an examples

1 Answers   TCS,


Which is easier netbeans or eclipse?

0 Answers  


What are the steps that are followed when two computers connect through tcp?

0 Answers  


When does the compiler supply a default constructor for a class?

9 Answers   TCS,


What is the difference between a choice and a list?

0 Answers  


What is the difference between C++ & Java?

78 Answers   College School Exams Tests, HAL, SUN, Syntel, TCS, Wipro,


What is the difference between dom and sax parser in java?

0 Answers  


How to sort array of 0 and 1 in java?

0 Answers  


Which list does not allow duplicates in java?

0 Answers  


What is meant by event handling in SAX parser?

1 Answers   Ness Technologies,


What is the purpose of stub and skeleton?

0 Answers  


Why should I use abstract class?

0 Answers  


Categories