Why don't you try the code with your compiler to test your hypothesis? A big part of successful SCJP preparation is writing and running code, so you should simply try to run the program if you're not sure what it's behavior will be.
After that, you can come back here to ask for an explanation of the behavior you observed, if necessary. [ December 04, 2007: Message edited by: Kelvin Lim ]
Joined: Dec 01, 2007
hi Kelvin, Thanks for reply... I already compile this program with javac -Xclint command line
it shows 1 warning,of unchecked cast...
but, i don't understand why this give warning even if we cast totally different type...
Instead, It has to show an error of undefined casting at compile time becouse,Generics checked at compile time, But compiler shows a warning...
if i consider,This is happen becouse of non generic list 'b' but b's content are of type circle....