Well,I went through the above website/links and i could not find an example for the USER DEFINED ANNOTATION. Could you help me out with this.?? Please provide me with an example for User Defined Annotation ?? It will be highly appreciated if you could provide me with an example.??
Could you explain which is Type safe ?? Static Import or Enum type constants ?? what do you mean by Type-Safety ??
Help provided will be highly appreciated.
-- Deepak Lal
Joined: Oct 13, 2005
There is a nice chapter about annotations in Bruce Eckel's Thinking in Java 4th edition, not the edition which is available free of charge.
I am finding your question a bit difficult to understand; enums and static import have nothing to do with each other. There is something about the type-safe enumeration pattern in Joshua Bloch's Effective Java. You can find more about both books in our Bunkhouse.
We have probably gone beyond the beginner's level now: moving thread.