Java @XMLMixed annotation behaved differently in JDK 1.6 as compared to JDK 1.5. It results in ClassCastException. Reason and possible solutions discussed in detail.
Annotation in Java are enhanced to a large extent since Java 5. This post explains different aspects of annotions in Java along with examples.
Java 5, which is tiger release, have many new concepts and features. Here is Java 5 tutorial that will provide you code examples of java 5 along with Java 5 concepts.