Exam Permalink:
https://www.jobilize.com/java-certification-questions
Question Permalink:
https://www.jobilize.com/java-enums
Question 261 / 297:  Which code, inserted at line 14, allows the Sprite class to compile?
class Nav{

public enum Direction { NORTH, SOUTH, EAST, WEST }

}

public class Sprite{

// insert code here

}

A  Direction d = NORTH;
B  Nav.Direction d = NORTH;
C  Direction d = Direction.NORTH;
D  Nav.Direction d = Nav.Direction.NORTH;
<< First < Previous Next > Last >>
Exam Home Page
https://www.jobilize.com/java-certification-questions

Oracle Certified Professional Java Programmer

Author:

Access: Public Instant Grading

Ask
Madison Christian
Start Quiz
George Turner
Start Quiz
Hope Percle
Start Quiz
Donyea Sweets
Start Test
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/java-certification-questions" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>