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
Reflective access allows a whole range of operations on objects that may not be permitted when you construct and use objects in the regular manner. This is extremely useful while building frameworks that may need access to the internals of your object.
Use this course to extract information and metadata about the constructors in a class and use them, accessed via reflection, to instantiate objects.
Access and modify fields or the member variables in an object. Access and invoke the methods defined on a class. Invoke static methods on the class itself and instance methods on specific objects of a class.
When you're done, you'll have the ability to use reflection to access and work with all class members, whether they are fields, constructors, or methods.

Objectives

Java: Accessing Constructors, Methods, & Fields Using Reflection

  • discover the key concepts covered in this course
  • access the constructors in a class using reflection
  • create objects of a class with handles to constructors
  • access member variables of a class and its metadata
  • access and update values of fields
  • access and update protected and private fields
  • access public, private, and protected methods
  • view method parameters, annotations, return types, and exceptions
  • view annotations on methods and recall the use of the retention policy
  • observe how not all annotations are available at runtime for reflective access
  • use method heuristics to identify getters and setters in a class
  • invoke and call methods using handles
  • summarize the key concepts covered in this course