Java: Getting Started with Reflection
Java SE 15
| Intermediate
- 14 Videos | 1h 55m 46s
- Includes Assessment
- Earns a Badge
Reflection is a popular programming technique that accesses and modifies class and object information at runtime. Reflection is available in many programming languages, but Java has an especially powerful set of reflection APIs that reflect - no pun intended - the emphasis that Java lays on type safety. Learn how to access a Java class object. Use reflection APIs to view class fields, constructors, and methods. Create objects for various built-in classes and use reflection to view the class of an object. Investigate the significance of the fully qualified name of a class and how you can use the .forName() method from the built-in class java.lang.Class. Use this method to obtain variables of primitive types and arrays of differing dimensionality. Then use reflection to access modifiers applied to member fields. Upon completion, you'll be able to use reflection in your Java operations with confidence.
WHAT YOU WILL LEARN
-
discover the key concepts covered in this coursecreate and set up a basic IntelliJ project to write java codedefine new classes and instantiate objects of these classesuse class handles accessed via reflection to explore properties of classesview fields, methods, and their modifiers using reflectionexamine how you can identify classes from their objectsuse reflection to identify a variety of classes from objects
-
get fully qualified names and simple names of classes using their handlesinvestigate how you can get a handle to class objects using just the class nameuse reflection to identify the modifiers of class membersidentify anonymous, local, member classes, and interfaces using reflectionidentify enums, arrays, and primitives using reflectionaccess package information, superclass, and declaring class informationsummarize the key concepts covered in this course
IN THIS COURSE
-
1.Course Overview2m 19sUP NEXT
-
2.Creating an IntelliJ Project6m 51s
-
3.Creating Classes and Instantiating Objects7m 1s
-
4.Extracting Class Information from Objects10m 35s
-
5.Viewing Class Fields, Methods, and Their Modifiers10m 53s
-
6.Examining Class Objects for Different Data Types9m 43s
-
7.Identifying Classes Using Objects11m 42s
-
8.Viewing Fully Qualified Class Names8m 37s
-
9.Creating Class Handles from Class Names9m 11s
-
10.Viewing Modifiers of Class Members8m 8s
-
11.Anonymous, Local, Member Classes, and Interfaces11m 40s
-
12.Identifying Enums, Arrays, and Primitives4m 34s
-
13.Viewing Class Package, Superclass, Declaring Class11m 57s
-
14.Course Summary2m 35s
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.