Oreilly – Learn Reflection with Java 2024-3

Oreilly – Learn Reflection with Java 2024-3

Oreilly – Learn Reflection with Java 2024-3
Oreilly – Learn Reflection with Java 2024-3

Learn Reflection with Java course. This course teaches you how to extend the capabilities of your programs and inspect classes and objects at runtime using Reflection in Java. Reflection is a powerful Java feature that can be used to extend the capabilities of a program, inspecting internal classes or objects at runtime. Java Reflection is very powerful and can be very useful. Java Reflection allows you to inspect classes, interfaces, fields, and methods at runtime, without the names of classes, methods, etc. being known at compile time. Java Reflection is useful for generating generic code, implementing dynamic frameworks, and testing and debugging. In this course, we start with the basics, then show how reflection works with more modern language features such as sealed classes and records. We also show how arrays can be manipulated and created through reflection. Finally, we demonstrate MethodHandle and VarHandle. Learn from hands-on exercises followed by demonstrations of solutions. Key points:

  • Save programming time by writing dynamic solutions to repetitive problems
  • Learn how dynamic coding through reflection impacts Java performance and correctness.
  • Knowing when to use and, more importantly, when not to use reflection for a Java programmer

What you will learn:

  • Inspect a class and find methods, fields, and constructors at runtime
  • Calling methods, changing fields, even if they are private
  • Writing more generic code that can be reused in different contexts
  • Understanding VarHandles and MethodHandles and knowing when to use them
  • Knowing how to inspect sealed classes and records through reflection

Who is this course suitable for?

  • Java programmers
  • Programmers from other languages ​​who are new to Java.

Course details

  • Publisher: Oreilly
  • Instructor: Heinz Kabutz
  • Training level: Beginner to advanced
  • Training duration: 4 hours and 9 minutes

Course headings

  • Introduction
  • Learn Reflection with Java: Introduction
  • Lesson 1: Introduction to Reflection
  • Learning objectives
  • 1.1 Who Am I?
  • 1.2 Why learn reflection?
  • 1.3 Class Class
  • 1.3.1 Method
  • 1.3.2 Modifier and AccessFlag
  • 1.3.3 Constructor
  • 1.3.4 Generics
  • 1.4 Nested classes
  • 1.5 Sealed classes
  • 1.6 Records
  • 1.7 Exercise
  • Lesson 2: Deep Reflection
  • Learning objectives
  • 2.1 Making private members accessible
  • 2.2 Performance considerations
  • Lesson 3: Arrays
  • Learning objectives
  • 3.1 Accessing elements
  • 3.2 Creating new
  • 3.3 Exercise
  • Lesson 4: java.lang.invoke
  • Learning objectives
  • 4.1 MethodHandles.Lookup
  • 4.1.1 privateLookupIn()
  • 4.2 MethodHandle
  • 4.2.1 MethodType
  • 4.3 VarHandle
  • 4.4 Unreflecting
  • 4.6 Exercises
  • Summary
  • Learn Reflection with Java: Summary

Prerequisites for the Learn Reflection with Java course

  • Students should be very familiar with Java 11, understanding data structures, object orientation, recursion and modern Java syntax.
  • Prior experience with reflection is a bonus, but not necessary.

Images of the Learn Reflection with Java course

Learn Reflection with Java

Sample course video

Installation Guide

After Extract, view with your favorite player.

Subtitles: None

Quality: 720p

Download link

Download Part 1 – 1 GB

Download Part 2 – 49 MB

File(s) password: www.downloadly.ir

File size

1.04 GB