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 catch more than one exception in a single catch block?
What is are packages?
What are selection structures?
Is there a sort function in java?
Which is fastest collection in java?
Explain what access modifiers can be used for variables?
What are the advantages of inner classes?
From the two, which would be easier to write: synchronization code for ten threads or two threads?
Why use string handling in Java?
Why put method is idempotent?
What do you mean by Function Overloading in java?
What is an escape character in java?
Explain, java is compatible with all servers but not all browsers?
Explain wait() method of object class ?
What is string pooling concept?