5910 Breckenridge Pkwy Suite B, Tampa, FL. 33610
(800) 272-0707

SkillSoft Explore Course

Aspire     Java Novice to Javanista     Java Novice to Javanista Track 2: Java Apprentice
Annotations on Java code allow you to associate additional metadata with classes, member variables, constructors, and methods. These annotations can be used to perform additional checks or add functionality to your Java code.
Use this course to practice using annotations with reflection. Work with both built-in and custom annotations and see how you can access the annotations applied on classes, fields, and methods.
Learn why not all annotations can be accessed via reflection. Create your own custom annotation and experiment with various retention policies. Next, examine accessing generics and arrays with reflection.
When you're finished, you'll be able to harness the power of reflection to add new functionality to your code and work with generics and arrays.

Objectives

Java: Working with Annotations, Generics, & Arrays Using Reflection

  • discover the key concepts covered in this course
  • examine what built-in annotations are accessible using reflection
  • create a custom annotation and examine retention policies
  • implement a use-case for reflection - accessing annotations to perform checks
  • implement a use-case for reflection - using reflection to check the objects of classes for validity
  • identify what generic information about type parameters is available using reflection
  • explore the disadvantages of using reflection with generics
  • view and edit data stored in arrays
  • use reflective access to determine array types and component types
  • summarize the key concepts covered in this course