Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

How does ClassLoader work in Java?

Pragya Keshap answered on February 4, 2023 Popularity 9/10 Helpfulness 4/10

Contents


More Related Answers

  • classloader in static method
  • What are classloaders and different types of class loaders in java?

  • How does ClassLoader work in Java?

    1

    In Java, ClassLoader is a class that is used to load files in JVM.

    ClassLoader loads files from their physical file locations e.g.

    Filesystem, Network location etc.

    There are three main types of ClassLoaders in Java.

    1. Bootstrap ClassLoader: This is the first ClassLoader. It

    loads classes from rt.jar file.

    2. Extension ClassLoader: It loads class files from jre/lib/ext

    location.

    3. Application ClassLoader: This ClassLoader depends on

    CLASSPATH to find the location of class files. If you

    specify your jars in CLASSPATH, then this ClassLoader

    will load them.

    https://www.geeksforgeeks.org/classloader-in-java/

    Popularity 9/10 Helpfulness 4/10 Language java
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 04 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.