Where will the object be created in java

This question already has an answer here:

  • Where are static methods and static variables stored in Java? 7 answers

  • For the Oracle JVM, there is a special object for each class to hold it's static fields. You can see this special object if you do a heap dump.

    NOTE: There is no specification of where static members are stored, so it could be anywhere based on the JVM.

    链接地址: http://www.djcxy.com/p/82886.html

    上一篇: 什么是SuSE Linux的最大Java堆空间

    下一篇: 在java中将创建对象的位置