JVM:
- , static (§2.9.1) , static . (§2.17.2) (§2.5.1). , (§ 2.17.8).
, OutsideLibraryClass ClassLoader, . myVal, OutsideLibraryClass, ClassLoader. , JVM, jar, OutsideLibraryClass, , .
UPDATE
The above statement is true if you are talking about an instance of a local variable in a method. If your variable myVal is declared at the class level, then people who say that this will not change are correct.
source
share