I made my class immutable following all Java standards
A. Defined class as final B. declared all fields as private and final C. No setter method D. No method changes the state of object E. declared all method as final F. Safer/defencieve copying of collection/ non mutable object fields.
These are the preliminal breakpoints that I did when I discussed the immutable class.
But one question remains, my object can still be modified using java reflection, right? Or is there some point that I missed in class?
Thanks in advance.
source share