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
Is null keyword in java?
Explain different ways of creating a thread. Which one would you prefer and why?
If a method is declared as protected, where may the method be accessed?
What is scope & storage allocation of static, local and register variables? Explain with an example.
What is the difference between stream and buffer?
What is ascii format?
How a string is stored in memory?
Can a static class implement an interface?
what is singleton class in java?
please send me hr interview questions in it industry
Can we call thread start () twice?
What is math exp in java?
Is java a prime method?
What is rmi and steps involved in developing an rmi object?
Why java doesn’t support multiple inheritances?