Sunday, February 13, 2011

Java questions for freshers


Java written test questions and answers for freshers


(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");


default:


System.out.print("I

No comments:

Post a Comment