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
Difference between process and thread?
What are the parts of methodology?
What is linkedlist in java?
Why scanner is used in java?
Which sorting algorithm is best in java?
What is void class in java?
How to use arraylist in java netbeans?
How do you add spaces in java?
Write a program to print fibonacci series up to count 10.
What is module in oop?
Is a method a function?
Can list be final in java?
How do I get a substring?
What is class and its types?
What are the advantages of autoboxing?