Question: Assume that the following enumerated data type has been declared: Enum Creatures{ HOBBIT, ELF, DRAGON } What will the following code display? System.out.println(Creatures.HOBBIT +
Assume that the following enumerated data type has been declared:
Enum Creatures{ HOBBIT, ELF, DRAGON }
What will the following code display?
System.out.println(Creatures.HOBBIT + " "
+ Creatures.ELF + " "
+ Creatures.DRAGON);
Step by Step Solution
3.47 Rating (186 Votes )
There are 3 Steps involved in it
Answer 0 1 2 Explanatio... View full answer
Get step-by-step solutions from verified subject matter experts
