Hi follwing is the problem from certPal
Given this code snippet, what can be inserted in the fragment ?
And the otipns are
1)return new Object();
2)return this;
3)return new Marmaduke();
4)return null;
5)return"";
the correct options are 2,3,4 and the expalnation given is "Co variant returns are allowed in
java language as of JDK1.5
I am not able to understand the explanation and also why option 1 is not correct
Thanks in advance