Question: / / Consider the following switch and case statement and evaluate what gets print out for different string values of month: switch ( month )

//Consider the following switch and case statement and evaluate what gets print out for different string values of month:
switch( month )
{
case "Jan":
case "Feb":
case "Mar":
System.out.println("First Quarter");
break;
case "Apr":
case "May":
case "Jun":
System.out.println("Second Quarter");
break;
case "Jul":
case "Aug":
case "Sep":
System.out.println("Third Quarter");
break;
case "Oct":
case "Nov":
case "Dec":
System.out.println("Fourth Quarter");
break;
default:
System.out.println("Invalid Month");
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!