Why the hang() method is only getting executed for one time?

class Demo{ static void hang(){ // Freezes/Hangs the program for some seconds. for(int i=0 ; i<100000 ; i++){ for(int j=0 ; j<10000 ; j++){ for(int k=0 ;...