logo

Crowdly

Browser

Додати до Chrome

What will be the result of the execution of the code below?

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

What will be the result of the execution of the code below?

1.	class Base { 2.	    public short getValue( ) { return 100; }  3.	} 4.	class Derived extends Base { 5.	    public byte getValue( ) { return 5; }  6.	} 7.	public class TestClass { 8.	    public static void main(String[ ] args) { 9.	        Base b = new Derived( ); 10.	        System.out.println(b.getValue( ));  11.	    } 12.	}

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

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

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

Browser

Додати до Chrome