Need of wrappers like Integer, Boolean for int, boolean - Java

Why do we need wrappers like Integer, Boolean for int, boolean in Java?

Wrapper classes are used to represent primitive data types as objects. Dealing primitive types as objects is sometimes easier. Many utility methods are available in wrapper classes. As the instances of wrapper classes are created, they can be persisted in the collection classes and pass them to methods as a collection.
Array vs ArrayList vs LinkedList vs Vector in java
Array vs ArrayList: ArrayList is much better than Array, when the size need to be increased dynamically. Efficiency is possible with arrays. ArrayList permits null elements...
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...
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...
Post your comment