Final variable manipulation in Java

前端 未结 11 744
无人及你
无人及你 2020-11-28 23:28

Could anyone please tell me what is the meaning of the following line in context of Java:

final variable can still be manipulated unless it\'s immut

11条回答
  •  [愿得一人]
    2020-11-29 00:09

    The one that always kills me?

    If you want final variables to actually be as safe as you thought they were, you need a lot of extra code to return a copy of a String[].

提交回复
热议问题