Java Programming with J2SE 5: Generics and Annotations


Overview/Description
Target Audience
Prerequisites
Expected Duration
Lesson Objectives
Course Number



Overview/Description
To explain what metadata is and how it can be used to provide annotation source to third-party tools and to outline J2SE 1.5 tool changes

Target Audience
Programmers with an understanding of procedural programming concepts who want to learn Java and object-oriented programming; programmers proficient in another object-oriented programming language who want to move to Java; programmers experienced in the Java language who want to take the Sun Certified Programmer for the Java 2 Platform, Standard Edition 5.0 exam

Prerequisites
Knowledge of programming principles and experience in procedural programming or scripting languages, such as Visual Basic, C, or JavaScript; understanding of object-oriented languages, such as C++ or C#, is an advantage

Expected Duration (hours)
3.0

Lesson Objectives

Java Programming with J2SE 5: Generics and Annotations

  • identify the advantages and disadvantages of using generics in code, and outline how generics are used to make raw code type safe.
  • specify the generic, type safe version of a given piece of legacy code.
  • specify the code involved in building a generic class for a given scenario.
  • specify the code required to declare a generic subclass, test generic object types, and cast a generic object.
  • convert a given application's legacy code into a generic type safe equivalent.
  • associate Java's retention policies and built-in annotations with their corresponding features and functionality.
  • specify the code to annotate an overriding method, a deprecated method, and to suppress compiler warnings.
  • specify the code to declare custom and meta-annotations.
  • specify the code to inspect and represent a custom annotation, write an annotation processor, and run the processor against a set of annotations.
  • create and implement a custom annotation for a given scenario.
  • Course Number:
    222163_eng