Answer Posted / venkata siva reddy
1.Make the class as final.
2.Make all the properties (variables) as private and final
3.Provide only getter methods for variables.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What’s the difference between unit, integration and functional testing?
What is the purpose of lambda expressions?
What is java english?
When should I use a singleton?
what is session in java?
What is method with example?
Explain the term virtual machine?
What does index mean in java?
What is the difference between jdk, jre, and jvm?
Explain about method local inner classes or local inner classes in java?
what is instanceof operator used in java?
Why java is called not pure object oriented language?
Explain heap sort?
How is it possible in java programming for two string objects with identical values not to be equal under the == operator?
When do we need to use internal iteration? When do we need to use external iteration?