what is the result of the following code?enum AccountType{ SAVING, FIXED, CURRENT; private AccountType() { System.out.println(“It is a account type”); }}class EnumOne{ public static void main(String[]args) { System.out.println(AccountType.FIXED); }}
A.Compiles fine and output is prints”It is a account type”once followed by”FIXED”
B.Compiles fine and output is prints”It is a account type”twice followed by”FIXED”
C.Compiles fine and output is prints”It is a account type”thrice followed by”FIXED”
D.Compiles fine and output is prints”It is a account type”four times followed by”FIXED”