logo

Crowdly

Browser

Додати до Chrome

Given the following code : class PolymorphismExample {     void display(int a)...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

Given the following code :

class PolymorphismExample {

    void display(int a) {

        System.out.println("Method with int parameter: " + a);

    }

    void display(String a) {

        System.out.println("Method with String parameter: " + a);

    }

    public static void main(String[] args) {

        PolymorphismExample obj = new PolymorphismExample();

        obj.display("10 is an integer");

    }

}

What is the output of the following code?

0%
6%
94%
0%
Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на learning.devinci.fr?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome