Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 0.28 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. What will be printed out if you attempt to compile and run the following
  2. code? int i=9; switch (i) {
  3.     default: System.out.println("default");
  4.     case 0: System.out.println("zero"); break;
  5.     case 1: System.out.println("one");
  6.     case 2: System.out.println("two");
  7. }