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 final class have constructor?

501


How do you sort data in java?

525


What is lexicographically smallest string?

601


Is zero a positive integer?

532


How arrays are stored in memory in java?

513






How do you do absolute value in java?

524


Why collection doesn’t extend cloneable and serializable interfaces?

643


Is java hashset ordered?

575


design an lru cache in java?

545


What is string in java is it a data type?

538


Why is serialization required?

543


Can we declare the main method of our class as private?

554


What is the core java?

543


What is the old name of java?

505


Is java call by value?

585