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
Highest level event class of the event-delegation model?
What is Classloader in Java?
What is the effect of keeping a constructor private?
Can you access non static variable in static context?
What are the advantages of user defined functions?
what is server side caching?
What is array command?
How do you remove duplicates in java?
What’s a deadlock?
What is the static block?
What is a percentage sign called?
Can vector have duplicates in java?
What is callablestatement? How you can call stored procedure to pass in parameter?
What are the different types of data structures in java?
How does regex work?