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
What is consumer in java?
What are the 4 versions of java?
How can the checkbox class be used to create a radio button?
Write a program to find maximum and minimum number in array?
What are the main differences between the java platform and other platforms?
How does java pattern compile work?
What is null data type?
what is abstract class in Java?
What is java regex?
If you do not want your class to be inherited by any other class. What would you do?
What do you understand by the bean persistent property?
What is widening and narrowing in java? Discuss with an example.
What is the memory leak in java?
What is a concrete classes? Is Java object class is concrete class?
What is the function of java?