↧
Answer by piet.t for Getting deadlock in java code
When BaseClass is referenced for the fist time the class loader kicks in and wants to set up the class for use. So it loads the class and starts the static initializer block static { load(); } This...
View ArticleGetting deadlock in java code
I have following three classes. BaseClass.java public class BaseClass { static { load(); } public static void init() { System.out.println("base init"); } private static void load() {...
View Article