Each time I run the code, I get different sequence of Output. Please help me out.. Why this is happening?
public class Hello {
public static abstract class b {
b() {
System.out.println("Abstract Class Constructor");
}
public abstract void display();
}
public static class d extends b {
d() {
System.out.println("Subclass Constructor");
}
public void display() {
System.out.println("Function Over-Ridden");
throw new ArithmeticException("Division by Zero");
}
}
public static void main(String[] args){
d a=new d();
a.display();
}
}