Quantcast
Channel: Getting deadlock in java code - Stack Overflow
Browsing latest articles
Browse All 2 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 latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>