What is a Java ClassLoader?

前端 未结 7 1995
眼角桃花
眼角桃花 2020-11-29 14:24

In a few simple sentences, what is a Java ClassLoader, when is it used and why?

OK, I read a wiki article. ClassLoader loads classes. OK. So if I include jar files a

7条回答
  •  [愿得一人]
    2020-11-29 14:51

    ClassLoader in Java is a class which is used to load class files in Java. Java code is compiled into class file by javac compiler and JVM executes Java program, by executing byte codes written in class file.

    ClassLoader is responsible for loading class files from file system, network or any other source. There are three default class loader used in Java, Bootstrap , Extension and System or Application class loader.


    ## ClassLoader interaction with JVM

    More @ : how-classloader-works-in-java.html

提交回复
热议问题