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 an eror in java?

559


How do you use nextline in java?

504


Why do we create public static method in java?

582


What are 4 pillers of object orinted programming?

582


What are different types of states exist for a thread?

551






What does jre stand for?

609


What is volatile keyword in java

649


What sorting algorithm does javascript use?

530


What is the this keyword?

558


Explain about fail fast iterators in java?

564


What is singleton class in ruby?

564


What about instanceof operator in java?

603


Is it necessary that each try block must be followed by a catch block?

561


What are synchronized methods ?

617


How to do encapsulation in java?

572