What is a Wrapper class?

Answer Posted / debapriya patra

When we need to store primitive datatypes as objects, we use
wrapper classes.MEans in utility classes all the utility
classes stores Objects.So when we need to store a primitive
datatype.We make an object of theat primitive data and store it.

Thats why we use Wrapper classes in Java.

Is This Answer Correct ?    172 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is hashset in java?

807


What is the destroy method?

841


how to handle exceptions in ejb?

2116


How will you communicate between two applets?

885


How to display names of all components in a Container?

2726


What is method overriding in java ?

900


Can a method be static?

754


Why java is call by value?

802


Why are global variables used?

738


What is method and methodology?

880


Does java have extension methods?

749


What are static blocks and static initalizers in java ?

803


Can a class be protected in java?

737


Give me some null interfaces in java?

828


What is anti pattern in java?

755