Home >Java >Javagetting Started >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!