Exam 1z0-809 All QuestionsBrowse all questions from this exam
Question 47

Given:

Which statement is true?

    Correct Answer: B

    A compilation error occurs in Cake because it attempts to extend Cream, which is a final class. In Java, a final class cannot be inherited by any other class. Therefore, Cake cannot extend Cream and this will result in a compilation error.

Discussion
jduarteOption: B

Answer B. Tested

pul26Option: B

Cream is a final class. How Cake class can extend Cream class? Cake class should cause a compile error.

duydnOption: B

Final class can not extends by another class

r1muka5Option: B

B, you cannot extend a final class

asdfjhfgjuaDCVOption: B

Answer is B Compilation error in Cake class

steefaandOption: B

B is correct, as Cream class is final and cannot be extended.

MahdiHamdiiOption: B

Answer B. Tested

WilsonKKerllOption: B

Answer is B.

HanenBAOption: B

Cream as a final class so it cannot be inherited any class that extends Cream class with throw a compile error

9641Option: B

Answer B

SamriddjiOption: B

It should have been B.