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
Can we override static methods in java?
How do you sort a string in java?
How do you clear a method in java?
how is final different from finally and finalize in java?
if u open login & logout ,how can udisplay the timelogin & logout members ?
When can an object reference be cast to an interface reference in java programming?
List out five keywords related to exception handling ?
What is difference between static and abstract class?
Can a constructor call the constructor of parent class?
What are the important features of Java 8 release?
What is the use of beaninfo?
What is generic class?
What is the relationship difference the canvas class and the graphics class?
How do you declare an array that will hold more than 64KB of data?
What is the use of System class?