Home > Java > Javagetting Started > body text

What is a class loader? What types is it divided into?

王林
Release: 2020-06-04 16:22:51
forward
6914 people have browsed it

What is a class loader? What types is it divided into?

1. What is a class loader?

A class loader is to load a class file into a virtual machine, that is to say, obtain it through the fully qualified name of a class. A binary byte stream describing this class.

The class loader is an innovation in the Java language. It was originally designed to meet the needs of Java Applets. Class loaders are currently commonly used in areas such as hierarchical partitioning, program hot deployment, and code encryption.

(Video tutorial recommendation: java video tutorial)

2. What are the categories of class loaders?

JVM provides us with the system class loader (JDK1.8) by default, including:

Bootstrap ClassLoader (system class loader)

Extension ClassLoader (extension class loading Loader)

Application ClassLoader(application class loader)

Customer ClassLoader(custom loader)

Recommended tutorial: java entry program

The above is the detailed content of What is a class loader? What types is it divided into?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template