Given: 5. enum Towns1{NY, LA, SF} 6. 7. public class DeclareEnum { 8. 9. enum Towns2{NY, LA, SF}; 10. 11. public static void main(String [] args) { 12. enum Towns3{NY, LA, SF}; 13. } 14. } What is the result? A The code compiles. B Compilation fails due to an error on line 5. C Compilation fails due to an error on line 9. D Compilation fails due to an error on line 12. E Compilation fails due to errors on lines 5 and 12. F Compilation fails due to errors on lines 9 and 12. Reference Close JLS 3.0, 8.9 Option D is correct. An enum may NOT be declared in a method. --------------------------------- Location: ... > Section 1: Declarations, Initialization and Scoping > Objective 1.1 > Question 2 Your answer is correct. Given three different source files: 1. package com.sun2; 2. public enum Seasons {SUMMER, FALL, WINTER, SPRING } And: 1. import com.sun2.Seasons; 2. class Enum3a { 3. Seasons s = Seasons.FALL...