O'Reilly logo
  • You Wang thinks this is interesting:

You can define an instance field as final. Such a field must be initialized when the object is constructed. That is, you must guarantee that the field value has been set after the end of every constructor. Afterwards, the field may not be modified again.


Cover of Core Java® Volume I—Fundamentals, Tenth Edition


Use final to make a field immutable.