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 are classloaders?

764


Write a function to print Fibonacci series and Tribonacci series?

937


What is a boolean expression in java?

750


Why put method is used?

756


What do u mean by variable?

783


What is the difference between menuitem and checkboxmenu item?

1051


What is the difference between the ">>" and " >>>" operators in java?

718


What are constants and how to create constants in java?

733


What is Major and importance difference between for and foreach loop ?

796


How can we create a thread in java?

782


What is the public field modifier?

756


Can you give names of Container classes?

2035


what do you mean by java annotations?

766


What is an immutable object? How do you create one in java?

800


What is fundamental datatype?

728