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 difference between servletconfig and servletcontext?

3 Answers   Amdocs,


What is the meaning of find and replace?

0 Answers  


why interaction with server using javascript is difficult

1 Answers  


Write a program to reverse array in place?

0 Answers  


What is array command?

0 Answers  






Can an abstract class have a constructor?

1 Answers   RBS, Wipro,


What is aggregation?

1 Answers   Cap Gemini,


What do you understand by the term polymorphism?

0 Answers  


How many times garbage collector will invoke an object?s finalize() method?

4 Answers  


How do you escape a string?

0 Answers  


How to sort the elements in HashMap

3 Answers   Ness Technologies,


Explain method local inner classes ?

0 Answers  


Categories