Errata: Jxam
<code>
1. Object o = new
String("abcd");
2. String s = o;
3. System.out.println(s);
4. System.out.println(o);
</code>
As you can see here there will be an compile time error based on incompatible referencing,and this was the probable answer given in Jxam.And this was the only one given by them. But they have missed one that is also correct.
ie.
The program will compile if the first line is altered to
String s = new String("abcd");
this change will make it compile and run
Thanks
Steven