What is meant by class loader and how many types are there?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / lucky
Class Loader: Class loder is mainly responsible for loading java class into JVM.
There are 3 types of java class loaders:
1)Bootstrap class loader :loads jdk jars.
2)Extensions class loader : loads java classes from the path
"JAVA_HOME/jre/lib/ext/
3)System class loader : loads the java classes from system class path , class path has been set by the CLASSPATH environment variable.
Is This Answer Correct ? | 2 Yes | 0 No |
Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).
Difference between static and dynamic class loading.
What does a za z0 9 mean?
what are the oops concept in java explain with real time examples
24 Answers Accenture, Bosch, Consummate Technologies, CTS, Current Technologies, iNautix, Infosys, Kekran Mekran, QA InfoTech, RTRT, SofTech, Tech Mahindra, Thorogood, Timios, Wipro,
What is meant by collection in java?
What is a resource leak ?
Can we override a variable in java?
What is an infinite loop in java? Explain with an example.
What is bitwise complement?
Is array primitive data type in java?
Why char array is favored over string for the storage of passwords?
What is class and object in java?