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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is class and its types?

530


Difference between overriding and overloading in java?

566


Can you explain the usages of class.forname()?

597


What is mean by exception?

541


What are adapter classes?

595






What is difference between add() and addelement() in vector?

1058


What about static nested classes in java?

578


Does anyone still use java?

575


What is empty list in java?

611


What is passing parameters in java?

509


What do you mean by platform independence? What is an interface?

557


How do you compare objects in java?

491


Why bytecode is called bytecode?

577


What does it mean to flush a file?

560


What are data types in oop?

539