point of having an instance variable as final?

前端 未结 6 413
醉梦人生
醉梦人生 2021-02-01 23:25

what is the point of having an instance variable as final?

isn´t it better to have that variable set as a static final variable then?

cause if it can\'t be chang

6条回答
  •  北海茫月
    2021-02-01 23:56

    It prevents other programmers from doing stupid things that they shouldn't try doing anyway...

提交回复
热议问题