what is wrapper class and its uses?

Answers were Sorted based on User's Feedback



what is wrapper class and its uses?..

Answer / guru

wrapper class used access the primitive data types as objects.
we cant store primitive data in arraylist,hashtable so we
using wrapper class used to store primitive data types as
objects,caz objects only can store in collections

Is This Answer Correct ?    7 Yes 0 No

what is wrapper class and its uses?..

Answer / 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

More Core Java Interview Questions

What are the basics of core java?

0 Answers  


For technical interview question please sir send me because tomorrow my interview

1 Answers   FactSet Systems,


How many types of java are there?

0 Answers  


What is generic type?

0 Answers  


Explain wait() method of object class ?

0 Answers  






How many threads does a core java have?

0 Answers  


Can we override constructor?

0 Answers  


what is use of functional interface in java 8?

0 Answers  


What is an interface in java?

0 Answers  


What does sprintf return?

0 Answers  


What are access modifiers in Java ?

6 Answers  


What is polymorphism in java? What are the kinds of polymorphism?

0 Answers  


Categories