What does it mean to be immutable?
Answer / Ajay Kumar Bhartiya
In Java, an object is considered immutable if its state cannot be modified after creation. Strings in Java are examples of immutable objects because once a String object is created, you cannot change the characters stored within that object.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the similarity between dynamic binding and linking?
Which sort is best in java?
What is string made of?
How do you detect memory leaks?
What is the life cycle of an Applet ?
Why is stringbuffer called mutable?
What method is used to specify a container's layout in java programming?
Explain the different forms of polymorphism?
When do you get classcastexception?
Is Constructor possible in abstract class in java ?
Write an algorithm for quick sort?
What is the benefit of inner classes in java?