Exam 1z0-819 All QuestionsBrowse all questions from this exam
Question 52

Given:

and

What is the result?

    Correct Answer: D

    The compilation fails because class X is declared as final, which means it cannot be extended by any other class. In the given code, class Y is trying to extend class X, causing a compile-time error.

Discussion
tmuralimanoharOption: D

Answer: D

StavokOption: D

D is correct since X is final,it can't be overriden

d7bb0b2

Since final class cannot be "extended"not overriden :D

Ankit1010Option: D

D is the correct answer. Since final class cannot be inherited/extended.