Tuesday, March 27, 2007

Generics&Annotations

I hava to say: they are very significant!
So, Making more practice about these two features is in the right directions to the 'effective' !

the former would told you the powerfulness and flexibility and the latter would push you out the moss of the error-prone.

ps.
In Java 6, when you use the generics in your super-class and in the same time you want use the annotations in your class to avoid the misplay, you must assign the specified type in your extends-statement, or you will get the error message, rather than the warning message, which I originally think about it.

If you want use the 3rd party's annotations, you must import the corresponding packages. after all, one annotation means one class. :)

No comments: