class Mountain{
Mountain(){
System.out.println("Atom");
}
}
class Rock extends Mountain{
Rock(
String name){
System.out.println(name);
}
}
class Example extends Rock{
Example(){
super("granite");
new Rock("granite");
}
public static void main (String[] args){
new Example();
}
}
for the above code the output is Atom granite Atom granite.
please tell me how is the flow of execution?