Buddhika Mawella wrote:There is nothing called 'loading' when compiling. Compiling a java program is just converting your human readable java code in to a machine readable language when interpreted by JVM.
What you actually mean is, "Are the static members of a class loaded into memory before or after an instance is created?"
As far as I know, they are part of the class file, which is loaded into memory by the class loader when the class is needed, before any instances are created. Search for the BCEL Manual, which is out of date, but still probably useful, or go through the JVM Specification.