logo

Crowdly

Browser

Add to Chrome

What will happen here? class Parent {     static void show() {         Syste...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What will happen here?

class Parent {

    static void show() {

        System.out.println("Parent");

    }

}

class Child extends Parent {

    static void show() {

        System.out.println("Child");

    }

}

public class Test {

    public static void main(String[] args) {

        Parent p = new Child();

        p.show();

    }

}

3%
97%
0%
0%
More questions like this

Want instant access to all verified answers on learning.devinci.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome