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 implement Singleton

Answer Posted / ajooba

since 1.5 version best way is to use an enum

public enum My
{
instance;
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can an interface be final?

1025


Does sprintf add a null terminator?

1087


What are void methods?

1013


What is the default access specifier for variables and methods of a class?

1196


Can a static method be overridden in java?

1008


Is java free for commercial?

918


What is the program development process?

966


Which collection does not allow duplicates in java?

968


What is the method overriding?

1080


What class allows you to read objects directly from a stream in java programming?

1063


Can I overload to string method

1434


When should I use singleton?

1025


What purpose do the keywords final, finally, and finalize fulfill?

1090


Which class cannot be a subclass in java?

1012


What are assembly attributes?

1000