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
What is sizeof () operator?
Does substring create a new object?
What is a conditional statement explain with example?
Why java does not support pointers?
What is the difference between a synchronized method and a synchronized block?
What are meta-annotations?
What does super keyword do?
What is the use of jtable?
What is array list in java?
How to sort an unsorted array in java?
Can we have return statement in finally clause? What will happen?
What is the disadvantage of synchronization?
What lambda means?
What is passing parameters in java?
When arithmeticexception is thrown?