What are wrapper classes?

Answer Posted / vijayakumar chinnasamy

Wrapper class : A class to enclosed(wrapped) the primitive
data type.

eg: Integer - it wrapp the int primitive data type.
Character - it wrap the chat data type.

int a=10;
Integer i=new Integer(a);

Java Wrapper class:

Integer,Byte,Short,Character,Boolean,Long,Float,Double.

Is This Answer Correct ?    13 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we override constructor?

796


What is parsing a sentence?

776


Tell me are there implementations for sorting and searching in the java libarary?

835


How does linkedlist work in java?

722


What is the purpose of finalization in java programming?

818


What is the longest unicode character?

909


What is binary search in java?

802


What are the differences between throw and throws?

858


What is an example of a constant variable?

817


Define locale.

826


What is ascii format?

780


What is purpose of find feature?

868


Which class is the superclass for all the classes?

787


Under what conditions is an object’s finalize() method invoked by the garbage collector?

805


What is the purpose of sizeof operator?

773