Answer Posted / vijayakumar chinnasamy
Steps:
1. Create class as final class
2. Make all the properties i.e instance variable as final.
3. Avoid or make the least access for the setter method
for properties.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Tell us something about set interface.
Is empty list java?
What is generics in java interview questions?
write a program that list all permutations of ABCDEF in which A appears before B?
What is a java developer salary?
What are the differences between include directive and include action?
What is a website container?
How does enum work in java?
What is a map? What are the implementations of map?
Can you explain the meaning of aggregation and composition
What is extension method in java?
What is difference between iterator and enumeration in java?
What are classloaders?
Explain the difference between jvm and jre?
What are sets in java?