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 ? | 33 Yes | 1 No |
Post New Answer View All Answers
What is ‘has a’’ relationship in java?
Is there any difference between synchronized methods and synchronized statements?
Explain how hashmap works?
Is java 11 paid version?
Is Java a dying language?
Explain the use of javap tool.
Is minecraft java edition free?
How to compare strings in java?
What is difference in between java class and bean?
Explain the inheritance?
What is the return type of the main method?
I want to persist data of objects for later use. What’s the best approach to do so?
What all access modifiers are allowed for top class ?
What is class variable java?
What is JFC?