Saturday, February 19, 2011

switch case interview questions and answers in java


Objective questions on switch case in java and answers. Free online interview questions for beginners.




(1)





public class SwitchCase {

public static void main(String[] args) {

int a=12;

switch(a){

case 014:

System.out.print("I know java");

break;

case 12:

System.out.print("I don't know java");

No comments:

Post a Comment