Oracle
1Z0-809 · Question #231
1Z0-809 Question #231: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-809 to reveal the answer and full explanation for question #231. The question stem and answer options stay visible for context.
Question
Which class definition compiles?
Options
- A
class Vehicle { int id; public void start() { public class Engine { int eNo = id; } } } - B
class Computer { private Card sCard = new SoundCard(); private abstract class Card { } private class SoundCard extends Card { } } - C
class Block { int bNo; static class Counter { int locator; Counter() { locator = bNo; } } } - D
class Product { interface Moveable { void move(); } Moveable mProduct = new Moveable() { void move() { } }; }
Unlock 1Z0-809 to see the answer
You've previewed enough free 1Z0-809 questions. Unlock 1Z0-809 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.