Multi Threading

© examsiri.com
Question : 40 of 44
 
Marks: +1, -0
Given:
public static synchronized void main(String[] args) throws
InterruptedException {
  Thread t = new Thread();
  t.start();
  System.out.print("X");
  t.wait(10000);
  System.out.print("Y");
}

What is the result of this code?
Go to Question: