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 the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?

824


What is the type of lambda expression?

733


What are identifiers in java?

787


what is object slice?

1773


What is the difference between equals() and == in java?

711


What isan abstract class and when do you use it?

1191


Can you explain the final method modifier?

772


What is consumer interface?

760


Which category the java thread do fall in?

757


Is math class static in java?

841


What is the difference between Error, defect,fault, failure and mistake?

882


Program to Find the second largest element in an array.

824


Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.

758


You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain

739


What is instanceof keyword?

957