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 able to pass objects as an arguments in java?

779


Is void a return type?

737


Why stringbuilder is not thread safe?

772


How are this() and super() used with constructors in java programming?

768


What is the difference between the ">>" and " >>>" operators in java?

737


What is annotation in java?

787


What is sorting algorithm in java?

767


Define an applet in java?

839


Explain a few methods of overloading best practices in java?

746


Explain inner classes ?

883


Can we increase size of array?

768


What is use of valueof () in java?

796


What are "methods" and "fields"?

777


What does isempty () do in java?

815


How do you download stubs from Remote place?

1538