What will be the output of following quiz on Enum ?
The enum variable count is treated as an instance variable, not a static variable.
The enum values Red, Green, Blue are all initialized at the same time. So, count = 0 for each of them
Correct answer is “0”
© 2016, www.topjavatutorial.com. All rights reserved. On republishing this post, you must provide link to original post