10. class Nav{
11. public enum Direction { NORTH, SOUTH, EAST, WEST }
12. }
13. public class Sprite{
14. // insert code here
15. }
Which code, inserted at line 14, allows the Sprite class to
compile?
a)Direction d = NORTH;
b)Nav.Direction d = NORTH;
c)Direction d = Direction.NORTH;
d)Nav.Direction d = Nav.Direction.NORTH;
Answer Posted / neil
Nav.Direction d = Nav.Direction.NORTH;
| Is This Answer Correct ? | 34 Yes | 1 No |
Post New Answer View All Answers
what is the difference between future and callable interface in java?
Is a case study a method or methodology?
How do you check if two given string are anagrams?
Why do people says “java is robust”?
Explain the difference between a Thread and a Process.
What is final method?
What’s the difference between constructors and other methods?
Are maps ordered java?
Does sprintf add a null terminator?
What is the function of compareto in java?
What is the console in java?
Can we convert list to set in java?
What is stringbuffer in java?
What is basic syntax?
What is a java lambda expression?