Which methods will be overridden

Report a typo

Which of the following methods will be overridden in SubClass?

class SuperClass {

    public static void staticMethod(int i) { }

    public void method1(int i) { }

    public void method2(int i, String s) { }
    
    private void method3(int i) { }
}

class SubClass extends SuperClass {

    public static void staticMethod(int i) { }
    
    public void method1(int i) { }

    public void method2(String s) { }
    
    public void method3(int i) { }
}
Select one or more options from the list
___

Create a free account to access the full topic