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

Java 15
  • 10 Videos | 1h 27m
  • Includes Assessment
  • Earns a Badge
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.

WHAT YOU WILL LEARN

  • 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

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 44s
    UP NEXT
  • Playable
    2. 
    Accessing Annotations on Fields and Methods
    9m 44s
  • Locked
    3. 
    Configuring Custom Annotations for Reflective Access
    12m 16s
  • Locked
    4. 
    Scenario: Accessing Annotations to Perform Checks
    11m 53s
  • Locked
    5. 
    Scenario: Checking Objects for Validity
    11m 30s
  • Locked
    6. 
    Using Reflection with Generics Classes and Methods
    9m 37s
  • Locked
    7. 
    Exploring Limitations of Reflection and Generics
    11m 7s
  • Locked
    8. 
    Working with Arrays Using Reflection
    7m 46s
  • Locked
    9. 
    Exploring Array Types and Component Types
    8m 14s
  • Locked
    10. 
    Course Summary
    2m 12s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.