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 is qms certification?

995


What is the difference between menuitem and checkboxmenu item?

1378


List the three steps for creating an object for a class?

1014


What is the purpose of main function in java?

1075


What are access specifiers in java ?

1198


os is developed in c no java is more secured then c na why dont the os developed is developed using java

4301


Write a program to check string is palindrome without using loop?

1087


What are the differences between Java 1.0 and Java 2.0?

2342


What is cr keyboard?

1339


How do you sort a list in java?

1070


If goto and const is reserve words than why it is not work in java?

2020


What is the default execution method in java?

1263


Difference between class#getinstance() and new operator ?

1273


How do you implement tree mirroring in java?

1116


What is the base class of all exception classes in java?

1105