Search Interview Questions | ![]() ![]() Click here and help us by providing the answer. ![]() Click Correct / Improve and please let us know. |
|
| ||||
Core Java - Interview Questions and Answers for 'Classloaders' - 4 question(s) found - Order By Newest | ||||
![]() | ||||
| ||||
Ans. Bootstrap - Loads JDK internal classes, java.* packages. Extensions - Loads jar files from JDK extensions directory - usually lib/ext directory of the JRE System - Loads classes from system classpath. | ||||
![]() | ||||
![]() ![]() ![]() ![]() | ||||
| ||||
Ans. Part of JVM which is used to load classes and interfaces. Bootstrap , Extension and System are the class loaders used by JVM. | ||||
![]() | ||||
![]() ![]() ![]() ![]() | ||||
| ||||
Ans. Class loaders are hierarchical. The very first class is specially loaded with the help of static main() method declared in your class. All the subsequently loaded classes are loaded by the classes, which are already loaded and running. | ||||
![]() | ||||
![]() ![]() ![]() ![]() | ||||
| ||||
Ans. static loading - Classes are statically loaded with Java new operator. dynamic class loading - Dynamic loading is a technique for programmatically invoking the functions of a class loader at run time. Class.forName (Test className); | ||||
![]() | ||||
![]() ![]() ![]() ![]() ![]() ![]() | ||||