Question 44 of 76 from exam 1Z0-808: Java SE 8 Programmer I
Question
Given:
![Base.java
class Base {
public void test 0 (
System.out.println ("Base ");
}
}
DerivedA. java
class Deriveda extends Base {
public void test 0 (
System. out.println("Deriveda ");
}
3
DerivedB.java
class DerivedB extends Deriveda {
public void test 0 {
System. out.println("DerivedB ");
}
public static void main(string[] args) {
Base bl = new DerivedB();
Base b2 = new DerivedA();
Base b3 = new DerivedB();
bl = (Base) b3;
Base b4 = (DerivedA) b3;
bl.test ();
b4.test ();](https://eaeastus2.blob.core.windows.net/optimizedimages/static/images/Java-SE-8-Programmer/question/img0004800001.png)
What is the result?
Answers
Explanations
Click on the arrows to vote for the correct answer
A. B. C. D. E.C.
Given:
What is the result?
Click on the arrows to vote for the correct answer
A. B. C. D. E.C.