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

What does int argc char * argv [] mean?

931


What is the dot operator?

942


How do you square a number?

1166


Is null or empty java?

927


What do you mean by inner class in java? Explain

1005


How do I start learning java?

999


Difference between nested and inner classes ?

1051


Can we sort hashmap in java?

896


What is boolean in java?

916


What is lexicographically smallest string?

1016


What are the application of stack?

857


What is nested loop? What is dangling else condition in it?

1021


How do you differentiate abstract class from interface?

913


What is the difference between path and classpath variables?

964


How do you access command-line arguments within the code?

1002