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 / naseer

declare constructor as private .that class only create one object

Is This Answer Correct ?    10 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When is the finalize() called?

1189


What is a text string?

1092


Difference between string, stringbuffer and stringbuilder?

1034


What is a vararg?

1042


Name container classes in java programming?

1113


What is the difference between the final method and abstract method?

1060


What are voids?

970


What is an empty list in java?

984


What is string made of?

966


How to connect to a remote database using Applet?

2550


What are the difference between composition and inheritance in java?

1034


Why a dead thread occurs?

986


how can i use a nonsynchronized hashtable?

2574


Can a method be overloaded based on different return type but same argument type?

975


how can you take care of mutual exclusion using java threads? : Java thread

1052