What is meant by class loader and how many types are there?

Answers were Sorted based on User's Feedback



What is meant by class loader and how many types are there?..

Answer / bhaskar verma

Class loader is a ways to load in the class in the
memory.The class loader is of two type.
1)static Loading.
2)Dyamic Loading.

Dynamic way is done by the help of class.forName();
Static loading is done by 4 ways.
1)In command prompt when u type "java <filename>.The class
is loaded.
2)When new keyword is use.Ex. Hello h=new Hello().
3)When you invoke a static method with the class name.
Ex. Hello.m1().m1() is the static method with null value.

Is This Answer Correct ?    17 Yes 6 No

What is meant by class loader and how many types are there?..

Answer / lucky

Class Loader: Class loder is mainly responsible for loading java class into JVM.

There are 3 types of java class loaders:

1)Bootstrap class loader :loads jdk jars.
2)Extensions class loader : loads java classes from the path
"JAVA_HOME/jre/lib/ext/
3)System class loader : loads the java classes from system class path , class path has been set by the CLASSPATH environment variable.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Core Java Interview Questions

why use interface? if interface declear a method implement in class. why direct implement method in class

1 Answers   HCL,


What is strings in java?

0 Answers  


How hashset works internally in java?

0 Answers  


why are there separate wait and sleep methods? : Java thread

0 Answers  


What do you mean by stack?

0 Answers   Accenture,






Name the method that used to clear the buffer ?

2 Answers  


take any 4 input numbers. like 2345.. wanted out put is All 16 combinations of the number 2345.. for example- taking input as 4565 output- 5654 4556 4655..

2 Answers   Emphasis,


Explain 5 features introduced in jdk 1.7?

0 Answers  


What are the traverses in Binary Tree?

2 Answers   Adobe, Infosys,


What differences exist between iterator and listiterator?

0 Answers  


How to reduce flicking in animation?

3 Answers   TCS,


What is immutable in java?

0 Answers  


Categories