Saturday, 19 February 2011

switch case questions and answers in java


Objective questions on switch case  in java and answers



(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 also

No comments:

Post a Comment