This method gives you information about the memory location of a Java object.
Used to determine the amount of memory occupied by this array. A scale factor is a term that represents how much a given amount, in this case, memory, is multiplied by the total. You cannot use the method that you are trying to use; this is unsafe .
However, there are safer versions that you can use: staticFieldBase or staticFieldOffset .
source share