What is Java Classloader?
Java Classloader is part of Java runtime environment which loads class on demand (lazy loading) into JVM (Java Virtual Machine) not only from local file system but from remote system or web.
There are 3 types of Classloader.
i. Bootstrap Classloader: Loads core java API file rt.jar from <JAVA_HOME/jre/lib> folder.
ii. Extension Classloader: Loads jar files from <JAVA_HOME/jre/lib/ext> folder.
iii. System/Application Classloader: Loads jar files from path specified in environment variable as CLASSPATH.
| Is This Answer Correct ? | 3 Yes | 0 No |
We have two methods to create methods the threads. 1. Implementing runnable interface 2. Extending to thread class and overriding run method. Among these two which one is better and why? Please explain me in detail.
How does synchronized modifier work?
What is clipping?
What is port number in java?
What are the differences between stringbuffer and stringbuilder?
Why does java have different data types for integers and floating-point values?
What is a list in java?
Explain access modifiers in java.
How will you override default serialization mechanism in java
An inner class can actually be a subclass of the outer class? a. true b. false
What is the difference between Access Modifier and Access specifier?
Can you start a thread twice in Java?