Using java reflection I noticed that all classes run their static constructors when targeted by reflection. Is there any way that I can force these static constructors to return or not run them at all?
Using java reflection I noticed that all classes run their static constructors when targeted
Share
No. The static initializer is invoked as soon as the class is loaded by the classloader and initialized.