Assuming the following enum declaration exists:
enum Dog {POODLE, BOXER, TERRIER}
what will the following statements display?
a. System.out.println(Dog.POODLE + "\n" +Dog.BOXER + "\n" +Dog.TERRIER);
b. System.out.println(Dog.POODLE.ordinal() + "\n" +Dog.BOXER.ordinal() + "\n" +Dog.TERRIER.ordinal());
c. Dog myDog = Dog.BOXER;if (myDog.compareTo(Dog.TERRIER) > 0)System.out.println(myDog + " is greater than " +Dog.TERRIER);elseSystem.out.println(myDog + " is NOT greater than " +Dog.TERRIER);
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.