Hi,Bhaskar Chakraborty, thanks your reply.
sorry i was just frustrated that could not get the answer.
my office computer does not have
java compiler so i could not
test the program, that is why i have to ask the question here.
from thsi statement:
i wonder what will happen because the 'list' is having some elements which are not String.
when we retrieve the non-string elements, we will be getting runtime error or compile error?
case 1:
.
above statement will cause compiler error. I guess. (no compiler cannot try><)
this case 2 is confused, am i going to obtain ClassCast runtime error? but i didn't cast it. so ? hmmm..... any ideas?
anyway, wish everyone happy coming weekend.
(i am very curious to test it but weekend is not programming day, haha).