top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is Classloader in Java and what are different types of classloaders?

+2 votes
97 views
What is Classloader in Java and what are different types of classloaders?
posted Jul 28, 2015 by Karthick.c

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

The Java Classloader is the part of the Java runtime environment that loads classes on demand (lazy loading) into the JVM (Java Virtual Machine). Classes may be loaded from the local file system, a remote file system, or even the web.
When the JVM is started, three class loaders are used:
1. Bootstrap Classloader: Loads core java API file rt.jar from folder.
2. Extension Classloader: Loads jar files from folder.
3. System/Application Classloader: Loads jar files from path specified in the CLASSPATH environment variable.

answer Feb 6, 2017 by Samira Sharma
...