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

Write a program to print count of empty strings in java 8?

1012


Can we write multiple catch blocks under single try block?

1092


Write a program to solve producer consumer problem in java?

1022


What are the wrapped, classes?

1060


What value is a variable of the string type automatically initialized?

1114


What is string made of?

965


What happens if main method is not static?

1002


How many types of string data types are there?

1098


What happens when a thread cannot acquire a lock on an object in java programming?

1024


Can we increase size of array?

1034


What is exception in java?

1093


How do you convert an int to a string in java?

1140


What interface is extended by awt event listeners?

1060


What are accessor methods in java?

1016


What are access specifiers available in java?

1014