You can't use qualified names in enums case constants. And, what is the point of duplicating same vale?
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
posted 5 years ago
Hi Abimaran, My question is different, The above code produces 2 compiler errors at Lines 8 and 17. How Line 8 knows that there is duplicate case which is defined at Line 17. At this point, Line 17 is error means compiler did not take it.