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 class of exceptions are generated by the java run-time system?
What is pre increment and post increment in java?
What are the main differences between notify and notifyAll in Java?
List types of storage classes in java?
how to handle exceptions in ejb?
What does file separator do in java?
What happens if an exception is throws from an object's constructor?
Is string a class in java?
What is default exception handling in java?
What is meant by nested loop?
What do you mean by aggregation?
Can we use string in switch case in java?
How do you sort in ascending order in java?
What is an infinite loop?
does java support pointers?