Originally posted by Graeme Byers:
Two questions.
1. Senario :
GBTest was written in 1.4 now I have 1.5 and I can javac -source 1.4 OK.
But now I'm enhancing it and using new 1.5 features and the old Collections syntax does not compile : "uses unchecked or unsafe operations"
So, what else is not upwardly supported ? In a real environment I would not only have to code and test my changes but re-code and re-test now unsupported syntax. Not good !
"You can mix generic code with older non-generic code , and everyone is happy" (S&B page 576)
Originally posted by Graeme Byers:
Vector has a toString() , ArrayList does not , but AbstractCollection does.
Steve
Originally posted by Graeme Byers:
Is it because one can easily switch (without other code changes , still using toString) from using Vector to any other Collection(say ArrayList)
Joanne
Steve
I'm doing laundry! Look how clean this tiny ad is:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|