Monday, January 10, 2005
Java : static modifier and System properties
Static modifiers are only static relativ to the classloader where the classes are loaded from. If the application uses for example several url classloaders static variables are only static relativ to each such classloader.
But now what about, if you store an object in the system properties (the system properties are in special also a hashtable!). Is this object "globally static" for the whole VM?
But now what about, if you store an object in the system properties (the system properties are in special also a hashtable!). Is this object "globally static" for the whole VM?