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
How does multithreading take place on a computer with a single cpu?
When we serialize an object does the serialization mechanism saves its references too?
Why is whitespace important?
What is immutable data?
How to convert string to byte array and vice versa?
What is a website container?
Difference between operator overloading and function overloading
Can a hashset contain duplicates java?
Give any two differences between C++ and java.
Which number is denoted by leading 0x or 0x in java?
Can we use catch statement for checked exceptions?
What is threaded programming and when is it used? : Java thread
What are format specifiers in java?
What are the advantages of unicode?
Explain how hashmap works?