Wrapper class in java provides the mechanism to convert primitive into object and object into primitive. wrapper classes are used to convert primitive values to java objects i.e; wrapper objects . it means wrapps up around a datatype and gives it a object apperence.
In this way, how many class loaders are there in Java?
There are three types of built-in ClassLoader in Java: Bootstrap Class Loader – It loads JDK internal classes, typically loads rt.jar and other core classes for example java.lang.* package classes. Extensions Class Loader – It loads classes from the JDK extensions directory, usually $JAVA_HOME/lib/ext directory.
What is a bootstrap class loader?
Answer : When a JVM starts up, a special chunk of machine code runs that loads the system classloader. This machine code is known as the Bootstrap / Primordial (or sometimes - Null) classloader. It is not a Java class at all, as are all other classloaders.
What is the use of extension class loader?
The extension framework makes use of the new class-loading mechanism in the JavaTM 1.2 platform. Bootstrap classes: the runtime classes in rt.jar and internationalization classes in i18n.jar. Installed extensions: classes in JAR files in the lib/ext directory of the JRE.
You May Like Also