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 a buffer in java?
What is use of map in java?
What all methods are used to prevent thread execution ?
What are inbuilt functions?
How do you check if a string contains only numeric digits?
What does exclamation mean in java?
Write a program to search a number in the given list of numbers.
How to retrieve data from database in java using arraylist?
What will happen when using pass by reference in java?
Tell me about your ability to work under pressure
Which is the best sorting technique in java?
What happens when you add a double value to a string?
Which collection is thread safe in java?
Explain the difference between transient and volatile in java?
What is final?