Home > Back-end >  Ask a questions about calling a static variable Java instance objects
Ask a questions about calling a static variable Java instance objects

Time:10-03


Trouble ask why, instance object can be called static variables can also change the value of the static variables, static variables is arguably belongs to the class itself has, static variables in the method of memory area, instance objects in the heap memory, instance object method is the method in the area, the instance object is saved in the heap memory address of a connection to the method of area, then why can instance objects are connected by a static variable to modify the value of the static variable instance objects in the heap memory is arguably only saved the address of a static variable, then the instance object point static variables can change properties of static variables?

CodePudding user response:

Solving ah, just want to ask, calling a static variable instance object properties to change the value of static variables in memory is how operation

CodePudding user response:

I'm an idiot, put an end to this post,,,,,,,,,,,,,,,,
  • Related