When will we use class loader?

Answers were Sorted based on User's Feedback



When will we use class loader?..

Answer / ravikiran(aptech mumbai)

classloader is a part of jvm which will load the compiled
class into the jvm

Is This Answer Correct ?    4 Yes 0 No

When will we use class loader?..

Answer / aks

In a Java Virtual Machine (JVM), each and every class is
loaded by some instance of a java.lang.ClassLoader. The
ClassLoader class is located in the java.lang package and
you can extend it to add your own functionality to class
loading.

Since Java 1.2 we have three types of class loaders:
Class loaders created automatically by the JVM
Program defined class loaders
Context class loaders.

There are three Class loaders in first group:
bootstrap class loader - loads classes
from ../jre/lib/rt.jar It is the "root" in the class loader
hierarchy.
extensions class loader - loads classes
from ../jre/lib/ext/*.jar
system class loader - it is responsible for loading in the
application, as well as for loading classes and resources
in the application's CLASSPATH.

Second group includes:
system class loader - parent class loader by default
additional parent class loader can be specified explicitly

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is an object?s lock? Give name of object?s that have locks?

2 Answers  


How many bytes is 255 characters?

0 Answers  


What is the difference between Stream Reader and Stream Writer?

4 Answers  


What is the common usage of serialization? What exceptions occur during serialization?

0 Answers  


what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread

0 Answers  


Is oracle charging for java?

0 Answers  


What class allows you to read objects directly from a stream?

0 Answers  


why java main method is given as static method?

2 Answers  


What is access modifiers?

1 Answers   Cap Gemini,


What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?

0 Answers  


What is nan inf?

0 Answers  


How do you declare an infinite loop?

2 Answers  


Categories