Error

Report a typo

Consider the following code:

enum Sections {
    DAISY, LOTUS, TULIP, ROSE
}
EnumSet<Sections> enumSet = EnumSet.of(Sections.DAISY, Sections.LOTUS, Sections.SUNFLOWER); // 1

Will line comment 1 throw an error? If yes, what type?

Select one option from the list
___

Create a free account to access the full topic