ExamQuestions.com

Register
Login
Java SE 8 Programmer II Exam Questions

Oracle

Java SE 8 Programmer II

40 / 130

Question 40:

Given: public class Canvas implements Drawable { public void draw (){ } } public abstract class Board extends Canvas {} public class Paper extends Canvas { protected void draw (int color){} } public class Frame extends Canvas implements Drawable { public void resize (){ } } publicinterface Drawable { public abstract void draw (); } Which statement is true? 

Answer options:

A. Board does not compile.
B. Paper does not compile.
C. Frame does not compile.
D. Drawable does not compile.
E. All classes compile successfully.