Hi, every one I am having a bit of a problem undestanding Java Annotations.
As English is not my first language I first have to understand what Annotations means. As I see it Annotation means some kind of a side notes, something the teacher or the author would write on the boarder of an essay for example. Notes about what should be done differently or what this part is supposed to be, which part needs to be rewritten and so on. I do now understand the purpose of the @override annotations, there you are explaining to the compiler that you meant to override the method. And the compiler can then let you know if you are overloading the method instead of overriding... neat! suppress warning are similar, at least as I understand it. Your are omitting the warning, let the compiler know that you are aware of the problem but you "know" what you are doing and don't want to be bothered with this warning again... I some how have the feelings that Annotations can be used to document your API, you could document your code, inside the source and then run some tool on it to create javadocs about your API but the excercises in LAB-1107 make no indications in that way... But why would I want to write my own Annotations methods, in what purpose, what do I gain by doing so and mostly how does it work. I am lacking an understending in this, so if anyone have a link to a good tutorial about Annoations it would be highly welcome if He/She could send it to me.. My best whises to you all - Halli --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
