Answer Posted / kanchan
To make a class immutable,
1. Don't provide any methods that modify the object.
2. Ensure that no methods may be overridden. Mark the class
as final. Make all fields final and private.
| Is This Answer Correct ? | 63 Yes | 1 No |
Post New Answer View All Answers
Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me
What is the difference between break and continue statements?
What is the difference between interface & abstract class?
What is regex used for?
Write a program in java to establish a connection between client and server?
Does chrome use java?
explain local datetime api in java8?
What does int [] mean in java?
What is entry set in java?
How do you sort data in java?
What is the best definition for data?
What is generic type?
What is the importance of finally block in exception handling?
What is final, finally, finalize?
what are the methods in object?