Learn Reflection with Java (Video Course)
Learn Reflection with Java (Video Course)
English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 29 Lessons (4h 9m) | 1.05 GB
A well-rounded Java programmer should know reflection, when to use it, and more importantly, when not to use it.
Some key points covered in this Learn Reflection with Java (Video Course):
- Save programming time by writing dynamic solutions to reoccurring problems
- Learn how dynamic coding via reflection affects Java performance and correctness
- A well-rounded Java programmer should know reflection, when to use it, and more importantly, when not to use it
Reflection is a powerful Java feature that can be used to expand the capabilities of a program, to examine the class or object internals at runtime.
Learn How To:
- Inspect a class and find methods, fields, and constructors at runtime
- Call methods, change fields, even if they are private
- Write more general code that can be reused in many different contexts
- Understand VarHandles and MethodHandles and know when to use them
- Know how sealed classes and records can be inspected via reflection
Java Reflection is quite powerful and can be very useful. Java Reflection makes it possible to inspect classes, interfaces, fields, and methods at runtime, without knowing the names of the classes, methods, etc. at compile time. Java Reflection is useful for creating generic code, implementing dynamic frameworks, and testing and debugging. In this Learn Reflection with Java (Video Course), we start with the basics, then show how reflection works with the more modern language features such as sealed classes and records. We also show how arrays can be manipulated and created via reflection. Lastly, we show MethodHandle and VarHandle. Learn from hands-on exercises that are followed by demos revealing the solutions.