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 an i/o filter?
Is jdk required on each machine to run a java program?
why would you use a synchronized block vs. Synchronized method? : Java thread
How do you end a program?
What is entry in java?
How many digits can a float hold?
When throws keyword is used?
How can you set an applet’s height and width as a percentage?
Can I import same package/class twice?
How do I find and replace in word?
What are the 6 boolean operators?
How do you sort an array in java?
What is meant by 'bit masking' in java?
Can you use this() and super() both in a constructor?
Explain the difference between intermediate and terminal operations in java8?