Java SE 7 Programmer II (1Z0-804)

© examsiri.com
Question : 7 of 8
 
Marks: +1, -0
public class Bees {
 public static void main(String[] args) {
  try {
   new Bees().go();
  } catch (Exception e) {
   System.out.println("thrown to main");
  }
}
 synchronized void go() throws InterruptedException {
  Thread t1 = new Thread();
  t1.start();
  System.out.print("1 ");
  t1.wait(5000);
  System.out.print("2 ");
 }
}
What is the result?
Go to Question: