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 does int argc char * argv [] mean?
What is the dot operator?
How do you square a number?
Is null or empty java?
What do you mean by inner class in java? Explain
How do I start learning java?
Difference between nested and inner classes ?
Can we sort hashmap in java?
What is boolean in java?
What is lexicographically smallest string?
What are the application of stack?
What is nested loop? What is dangling else condition in it?
How do you differentiate abstract class from interface?
What is the difference between path and classpath variables?
How do you access command-line arguments within the code?