Define Autoboxing with an example

Define Autoboxing with an example

The automatic conversion of primitive int type into a wrapper class object is called autoboxing. It does not require to type cast the int value. The modification of primitive wrapper objects is done directly.

The following example illustrates autoboxing
int number;
Integer intObject;
number = 1;
intObject = 2;
number = intObject;
intObject = number;
Can Java communicate with ActiveX objects? - Java
Java can communicate with ActiveX objects by using Bridge2Java from IBM. Bridge2Java is a tool for allowing the java applications for communicating with ActiveX objects...
What is CLASSPATH variable? What is default classpath? - Java
CLASSPATH is an environment variable that communicates JVM and other java applications for finding the java language class libraries, including the developer’s class library. It is set by setenv command like...
Explain how to convert any Java Object into byte array? - Java
1. Create an object of ByteArrayOutputStream class. ByteArrayOutputStream bStream = new ByteArrayOutputStream();..
Post your comment