Regards
Balraj Kumar
SCJP 5 95%
SCWCD 82%
Preparing for SCBCD
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Regards
Balraj Kumar
SCJP 5 95%
SCWCD 82%
Preparing for SCBCD
But when I tried to compile it, It did not work for me. Line 1 gave me problems.
Regards
Balraj Kumar
SCJP 5 95%
SCWCD 82%
Preparing for SCBCD
michael muris wrote:@Nitish: The difference between D and A is in the declared type of the return value. In both cases I believe I can add anything that implements T to the returned array.
Can you provide an example of something that is possible with the D answer but not with the A answer?
be a well encapsulated person, don't expose your privates, unless you public void getWife()!
be a well encapsulated person, don't expose your privates, unless you public void getWife()!
Don't get me started about those stupid light bulbs. |