Nalanda Institute of Computer Technology

Tuesday, March 9, 2010

Question asked in Cdac interview

1.

final int a = 1;
final int b;
b = 2;
int x = 0;
switch (x) {
case a:
System.out.println("Hello");
break;
case b:
System.out.println("World");
break;

}

what will be the output of this program.
Posted by Santosh Kumar at 6:02 AM No comments:
Newer Posts Older Posts Home
Subscribe to: Comments (Atom)

Blog Archive

  • ▼  2010 (4)
    • ►  May (1)
    • ►  April (1)
    • ▼  March (1)
      • Question asked in Cdac interview
    • ►  February (1)
  • ►  2009 (7)
    • ►  December (1)
    • ►  November (1)
    • ►  June (2)
    • ►  February (1)
    • ►  January (2)
  • ►  2008 (4)
    • ►  December (1)
    • ►  October (1)
    • ►  September (2)

About Me

Santosh Kumar
View my complete profile