java: If I assign a variable the same value as just before, does it change the memory or does JIT recognize this?

前端 未结 0 362
梦谈多话
梦谈多话 2021-02-07 07:31

For example:

class Main {
   public hasBeenUpdated = false;

   public updateMain(){
     this.hasBeenUpdated = true;
   }

   public persistUpdate(){
     this.h         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题