Answered You can hire a professional tutor to get the answer.

QUESTION

What will be printed out if you attempt to compile and run the following code ?

What will be printed out if you attempt to compile and run the following code ?

int i=1;

 switch (i) {

 case 0:

 System.out.println("zero");

 break;

 case 1:

 System.out.println("one");

 case 2:

 System.out.println("two");

 default:

 System.out.println("default");

 }

1) one2) one, default3) one, two, default4) default

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question