Hi, I don't understand the below code which is from JavaBeat MockExam.
I expected the output is Compilation error: cannot run enum as a standalone application. When i complied the program i got compiler error as class or interface expected. But the answer in the javabeat is No errors. Output: VANILLA CHOCOLATE Is this correct?