A simple question about Final reference variables.
I read in the book that final modifier assures that a reference variable cannot be referred to different Object but state of the object can be changed.
Does it only mean that f1 can not refer to f2( or any other object). Or it means more than that?
Correct, when you make a 'reference' as a constant(final), your 'reference' refer to the same 'heap space' where your object is get created, that's mean, reference "f1" can't point other than that memory space(object allocated space), but that's dosen't mean you can not change the instance variable which resides in that object.