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
Why can't we make a class private in java?
Explain method overloading?
What is the base class in java from which all classes are derived?
How many types of the indexof method are there for strings?
Explain the difference between an Interface and an Abstract class?
Write a java program that prints all the values given at command-line.
What is skeleton and stub?
How many techniques can be employed to create a string object?
Is java call by value?
Why java is used everywhere?
Can we catch more than one exception in a single catch block?
What are the different types of inheritance in java?
How can we make copy of a java object?
What access modifiers can be used for methods?
Discuss 2D arrays.