News for hackers. Stuff that matters.
Re:“I am literally losing sleep” over Java (1996) by pivo on Thursday January 06, 2022 @01:19PM (#29827496)
Not if you need to implement some setter logic though, or want to reserve the option to do so in the future. And not if you want those instance variables to be available as JavaBean properties.

I haven't developed in Java in a long time, but public instance variables were a no-no when I did for these reasons.

There are no comments on this comment yet.