Months

Report a typo

You are given the following enum.

public enum Month {
    JAN(1),
    FEB(2),
    MAR(3),
    APR(4),
    MAY(5),
    JUN(6),
    JUL(7),
    AUG(8),
    SEP(9),
    OCT(10),
    NOV(11),
    DEC(12);

    Month(int number) {
        this.number = number;
    }

    private final int number;
        
    public int getNumber() {
        return number;
    }
}

Select all correct statements.

Select one or more options from the list
___

Create a free account to access the full topic