What is wrong with the following code, if any?
(Select one correct answer)
--------------------------------------------------------------------------------
public class Test005
{
public static void main(
String args[])
{
Thread.yield(); //1
Thread t = Thread.currentThread();
synchronized(t) { //2
t.notify(); //3
}
Object o = new Object();
System.out.println(null == o); //4
}
}
--------------------------------------------------------------------------------
A: The code does not compile due to line //1.
B: The code does not compile due to line //2.
C: The code does not compile due to line //3.
D: The code does not compile due to line //4.
E: There is nothing wrong with the code.
i answered d, since u r comparing null == o; but the correct answer is e.
can somebody plz explain.