Patent ID: 7096467

Claim:
In a Java computing environment, a method of initializing Java classes in a Java class file suitable for loading by a Java virtual machine operating in the Java computing environment, said method comprising: by a Java class loader, loading a first initialization method associated with a first Java class into a memory portion of said Java virtual machine, said first initialization method capable of initializing said first Java class when executed; setting a monitor suitable for synchronization to a first state when said first initialization method has been loaded, wherein the monitor is usable as a synchronization mechanism to allow the Java virtual machine to know when the first initialization method has been loaded and is ready for execution; executing said first initialization method after said first initialization method has been loaded into said memory portion of said Java virtual machine, thereby initializing said first Java class; after the first initialization method has been executed, setting said monitor to a second state when said first initialization method has been executed; and by the Java class loader, deleting said first initialization method from said memory portion, based upon said monitor being in said second state, after said execution of said first initialization method has been completed, whereby the first initialization method is deleted independent of the loaded class.