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
Write a program to print count of empty strings in java 8?
Can we write multiple catch blocks under single try block?
Write a program to solve producer consumer problem in java?
What are the wrapped, classes?
What value is a variable of the string type automatically initialized?
What is string made of?
What happens if main method is not static?
How many types of string data types are there?
What happens when a thread cannot acquire a lock on an object in java programming?
Can we increase size of array?
What is exception in java?
How do you convert an int to a string in java?
What interface is extended by awt event listeners?
What are accessor methods in java?
What are access specifiers available in java?