SCJP Certification

Sun Certified Java Programmer Certification exam essentials

Posts Tagged ‘break’

November 23rd, 2009

What will be the output of the following program code?

No Comments, Java Questions, by Daisy Williams.

class Ques0357{ public static void main(String[] argv){ int s = 2; switch (s) { case 1: System.out.println(“Fred”); break; case 2:…

Share

September 2nd, 2009

The Switch statement

1 Comment, Java Facts, by Daisy Williams.

The switch statement is a multiway branch statement. The general form of the switch statement is given below: switch(expression) {…

Share