Predict the output:

class Sookshmas
{
public static void main(String...k)
{
String s = "xyz";
switch (s.length()) {
case 1:
System.out.println("1");
break;
case 2:
System.out.println("2");
break;
case 3:
System.out.println("3");
break;
default:
System.out.println("no match");
}
}
}

Posted on by