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

Why java applets are more useful for intranets as compared to internet?

571


What are desktop procedures?

554


What is a pattern what is an anti pattern?

498


What do you mean by inner class in java? Explain

580


Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).

2222






Can constructor be protected in java?

497


How will you reverse a link list without using recursion?

581


what is predefined function in java?

531


what is instanceof operator used in java?

583


What is the difference between yield() and sleep()?

535


What is the difference between the prefix and postfix forms of the ++ operator?

550


Explain try and catch keywords in java?

616


What does a boolean method return?

621


What is the use of string and stringbuffer?

538


How to create an immutable class?

562