What will be the uutput of the following Code?

class Super {
     
       
        public  void getStr()
        {
                System.out.println("SuperClass");
        }
       
}

public class Sub extends Super {
     
        public void getImp()
        {
          System.out.println("SubClass");              
        }
       
        public static void main(String[] args)
        {
                               
                Super sp = new Super();
                Super sp1 = new Sub();
                ((Sub)sp1).getImp();
        }
       
}

SubClass
Interview Questions: 

Search