Question: Assume you have an enum called Navigation. It is declared like this: public enum Navigation { LEFT, RIGHT, STRAIGHT } Which of the following is

Assume you have an enum called Navigation. It is declared like this: public enum Navigation { LEFT, RIGHT, STRAIGHT } Which of the following is a valid Java statement?

A. Navigation navRight = myNavigation.RIGHT; // assume myNavigation is an instance of Navigation B. Navigation navRight = new Navigation(); C. Navigation navRight = Navigation.RIGHT; D. Navigation navRight = Navigation.get(RIGHT);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!