Question: int x = 3 ; case 0 : System.out.print ( T ) ; case 1 : System.out.print ( H ) ;

int x=3;
case 0 : System.out.print("T");
case 1 : System.out.print("H"); break;
case 2 : System.out.print("A");
case 3 : System.out.print("N"); break;
case 4 : System.out.print("X");
}
What is the output?
N
HN
T
None of the other answers
NX
 int x=3; case 0 : System.out.print("T"); case 1 : System.out.print("H"); break;

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!