Yes,the Dog class won't compile..you need write a parameterized super() inside the Dog method.
class Animal{
void method() throws Exception{}
Animal(
String name){
System.out.println(name);
}
}
class Dog extends Animal{
Dog(){
super("Gf");
}
void method() throws Exception{}
}
class Test1{
public static void main(String args[]){
new Animal("Girafee");
}
}