Given an enum with 4 elements
enum fontType {bold,italic,underlined,struck} and two variables of this enumeration type called enum1 and enum2 that are assigned as follows
fontType enum1=fontType.bold | fontType.italic; fontType enum2=fontType.underlined & fontType.struck; Why is enum1 = 'italic' and enum2 = 'underlined' on output?