Originally posted by Anvi Dixit:
Hello Everyone,
Please find below the question asked in the K & B book.
now here the answer is E. But there is a mistake . please have a look on the statement.
System.out.println(new Runnable() {public void run() { }});
just before the semicolon there is a bracket ), which should not be there as i believe.
Please let me know whether i am correct or not.
Thanks in advance
Anvi Dixit
The ) is necessary to complete the SOP.
This code would be the equivalent of