Could anyone please tell me what is the meaning of the following line in context of Java:
final variable can still be manipulated unless it\'s immut
You can call any method on it even if the method can change the state of the object the reference is pointing to. E.g
final MyClass myClass = new MyClass(); myClass.setVar(something);
This is fine because myClass itself is not changing, i.e you are not doing myClass = myClass1;.
myClass
myClass = myClass1;