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 |
Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)
What is the difference between Byte stream and Charecter Stream?
Can an object?s finalize() method be invoked while it is reachable?
what is for datainputstream?
What is == mean?
What is method in java ?
What is the purpose of declaring a variable as final?
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.
Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?
Write program to print Hello World and print each character address in that string and print how many times each character is in that string? Ex: H: 0 & 1 e:1 & 1 l :2,3,8 & 3 o:4,6 & 2 w:5 & 1 r: 7 & 1 d 9 & 1
what is the use of thread?Justify it by project point of view
Can you achieve runtime polymorphism by data members?