Understanding the Java Virtual Machine: Class Loading and Reflection

This course covers some of the fundamentals and inner workings of the Java Virtual Machine. This class will be the first in the series and will examine class loading.
Course info
Rating
(295)
Level
Intermediate
Updated
May 13, 2020
Duration
2h 9m
Table of contents
Description
Course info
Rating
(295)
Level
Intermediate
Updated
May 13, 2020
Duration
2h 9m
Description

Java is built around classes; these classes have to be loaded into memory and loading that is the responsibility of class loaders. The first part of this course will look at this class loading mechanism and how to write class loaders. Once you understand this, several scenarios become available, such as hot deployment of classes and the side-by-side loading of classes. Java has a rich type system and rich metadata. Reflection is the mechanism by which you can examine that metadata at runtime, and use that information to build rich applications. In the second part of this course, we will see how to use reflection to both examine this metadata at runtime and use it within our applications.

About the author
About the author

Kevin has spent way too many years in the software industry. Starting on PL/1 on IBM mainframes then graduating through dBase IV to Windows and eventually onto Java, .Net and now JavaScript where he finally thinks he has found a home until the next new shiny comes along.

More from the author
Introduction to the Java API for Web Sockets
Intermediate
1h 53m
Jun 5, 2020
Architecting Web Applications with Spring
Intermediate
1h 58m
Jun 2, 2020
More courses by Kevin Jones
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone. My name is Kevin Jones. Welcome to my course, Understanding the Java Virtual Machine: Class Loading and Reflection. I'm a developer and owner at Rock Solid Knowledge, a software development company based in the United Kingdom. If you want to understand how the JVM works, you need to understand how the class loader works. It is at the core of everything you do in Java. If you've ever hit NoClassDefFoundErrors or wondered how your favorite web server is able to reload your classes, then this is the course for you. Do you want to know what reflection is and how IOC containers work, then we explain that here and build a lightweight IOC container example to examine these topics in depth. Some of the major topics that we'll cover include, understanding class loader delegation, learn how to use the URL ClassLoader to provide class loading separation in space and time, create your own class loader to load classes from a database, use reflection to create and initialize objects, on build a simple IOC container to show the power of reflection. By the end of this course, you'll understand how powerful class loading is and how it's used to fill many parts of the Java ecosystem. You'll also see how reflection is used in the tooling and applications that you use to build and run your own Java code. Before beginning the course, you should be familiar with the Java language. I hope you'll join me on this journey to understanding class loading and reflection with the Understanding the Java Virtual Machine: Class Loading and Reflection course, at Pluralsight.

Introduction
[Autogenerated] Hi, everyone. My name is Kevin Jones. Welcome to my course. Understanding the Java virtual machine class loading and reflection. I'm a developer and owner and rock solid knowledge saw for development company based in the United Kingdom. If you want to understand how the JV M works, you need to understand how the class loaded works. It is at the core of everything you do in Java. If you've ever hit no class, they're found errors. Or wondered how your favorite Web server is able to reload your classes. And this is the course for you. You want to know what reflection is on how IOC containers work? Let me explain that here on billet lightweight IOC container example to examine these topics in depth, some of the major topics we will cover include understanding class. So delegation learn how to use the You are class loader to buy class during separation in space and time. Create your own class voter toe. Low class is from a database use reflection to create initialize objects on bill, a simple IOC container show. The power of reflection by the end of this course will understand how powerful trust learning is on how it's used to feel many parts of the Java ecosystem you'll also see. Her reflection is used in the tooling applications that you use to build and run your own Java code Before beginning the course. You should be familiar with a Java language. I hope you'll join me on this journey to understanding class Laurie and reflection with the understanding that Java virtual machine class during and reflection course that little site.