How are static arrays stored in Java memory?

前端 未结 7 1961
名媛妹妹
名媛妹妹 2021-02-18 21:33

So in a language like C, memory is separated into 5 different parts: OS Kernel, text segment, static memory, dynamic memory, and the stack. Something like this:

相关标签:
7条回答
  • 2021-02-18 22:13

    Static has a different meaning in Java. In Java when you declare a variable as static it is a class variable and not an instance variable.

    0 讨论(0)
提交回复
热议问题