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

How do you start a thread?

0 Answers  


How do you allocate memory to object?

0 Answers  


What is a boolean structure?

0 Answers  


diffrence b\w println() and printf()

8 Answers   NIIT,


Can set contain duplicates?

0 Answers  






What is the purpose of the enableevents() method in java programming?

0 Answers  


What methods are called, When we navigate from one applet to another applet?

1 Answers  


How finally used under exception handling?

0 Answers  


in a constructor what happen if u call super and this in the same class? i know that it is not possible to call both in the same one? if we call what will happen?

10 Answers   ITC Infotech,


What do you mean by Remote procedure call?

2 Answers  


Is age a discrete variable?

0 Answers  


Can we create an object of static class in java?

0 Answers  


Categories