Answer Posted / vaibhav
1 Make the all variables of class final and private
2. Make only private constructor
| Is This Answer Correct ? | 5 Yes | 7 No |
Post New Answer View All Answers
what is optional in java 8?
Difference between string, string builder, and string buffer?
What is JFC?
Is java owned by oracle?
What is the use of set in java?
How do you clear a method in java?
What does void * mean?
Why is multithreading important?
How to write custom exception in java?
How many arguments can a method have java?
What is multithreading and its advantages?
What is outofmemoryerror in java?
How do you remove all elements from an arraylist in java?
What programs use java?
What is foreach loop in java?