Deciphering Java Enum Constructors

Report a typo

Consider the following code snippet of a Java enum `TimeZone`:

public enum TimeZone {

  PST("Pacific Standard Time", -8),
  MST("Mountain Standard Time", -7),
  CST("Central Standard Time", -6),
  EST("Eastern Standard Time", -5);

  private final String desc;
  private final int offset;

  TimeZone(String desc, int offset) {
    this.desc = desc;
    this.offset = offset;
  }

  public String getDesc() {
    return desc;
  }

  public int getOffset() {
    return offset;
  }
}

Based on the understanding of enum in Java and the code snippet above, which of the following statements are correct?
Select one or more options from the list
___

Create a free account to access the full topic