can anyone explain me why there is a deadlock in this code.Thanks
public class Deadlock { static class Friend { private final String name;
Best way to understand is put below code in bow() before calling bower.bowBack
try { Thread.sleep(1); } catch (InterruptedException e) { e.printStackTrace(); }