what is wrapper class and its uses?

Answer Posted / vijayakumar chinnasamy

A class enclosed or Wrapped the primitive data type is
called wrapper class.

Number class is the super class for Wrapper class. subclass
of Number classes are Byte,Short,Intger,Long,Float,Double,
Character

primitive values Wrapper class

byte Byte
short Short
int Integer
long Long
float Float
char Character

Mostly the wrapper classes are used to pass the date thru
networks/serializable.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can java object be locked down for exclusive use by a given thread? : Java thread

523


Is minecraft java edition free?

566


how are methods defined?

547


Explain what is Marker interface?

605


What is the largest long allowed by java?

530






What are packages in java?

554


If a method is declared as protected, where may the method be accessed?

522


How to use Media tracker Class.

637


Why java is object oriented?

579


Which language is java?

536


Is space a char?

520


Why is the main method static?

593


What happens if an exception is throws from an object's destructor?

577


Define an abstract class with reference to java.

567


What is string variable?

548