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
Can an interface be final?
Does sprintf add a null terminator?
What are void methods?
What is the default access specifier for variables and methods of a class?
Can a static method be overridden in java?
Is java free for commercial?
What is the program development process?
Which collection does not allow duplicates in java?
What is the method overriding?
What class allows you to read objects directly from a stream in java programming?
Can I overload to string method
When should I use singleton?
What purpose do the keywords final, finally, and finalize fulfill?
Which class cannot be a subclass in java?
What are assembly attributes?