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 the difference between static (class) method and instance method?
What is use of valueof () in java?
How are multiple inheritances done in Java?
Can java inner class be static?
What is the use of put method?
Are generics important java?
How to sort an array from smallest to largest java?
How we can run a jar file through command prompt in java?
Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?
What is finally block?
What is integer valueof?
what is meant by Garbage collection?
What is method in java ?
Is java pass by value or pass by reference?
What is hash table in java?