Quantcast
Channel: Getting deadlock in java code - Stack Overflow
Browsing all 2 articles
Browse latest View live

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 Article



Getting 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
Browsing all 2 articles
Browse latest View live




Latest Images