Flow Control
© examsiri.com
Question : 11 of 14
Marks:
+1,
-0
Given:
What is the result?
class Swill {
  public static void main(String[] args) {
   String s = "-";
   switch(TimeZone.CST) {
    case EST: s += "e";
    case CST: s += "c";
    case MST: s += "m";
    default: s += "X";
    case PST: s += "p";
   }
   System.out.println(s);
  }
}
enum TimeZone {EST, CST, MST, PST }What is the result?
Go to Question: