What is meant by class loader and how many types are there?
Answer Posted / 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 |
Post New Answer View All Answers
What is the purpose of static keyword in java?
What is the difference between assignment and initialization?
If a variable is declared as private, where may the variable be accessed?
What is == in java?
How to restrict a member of a class from inheriting by its sub classes?
Can a class declared as private be accessed outside it’s package?
Is null a string in java?
Which collection is best for sorting in java?
Is 0 a prime number?
What is java instanceof operator?
Is java pass by value or pass by reference?
Is singleton thread safe in java?
What are the legal operands of the instanceof operator?
What is variable and rules of variable?
Can we use string in switch case in java?