Answer Posted / priyanka
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.
int is a primitive data type , where as Integer is a class
which encapsulates the primitive int data type and
represents in terms of object.
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
What are the data types supported by java?
What is a values collection view ?
What is meant by structural programming?
What is boolean query?
What is the difference between heap memory and stack memory?
Define Multiprogramming and Multiprocessing in java.
What is generic class?
What is e in java?
What is memory leak and how does java handle it?
Why vector is used in java?
What is application tier?
Explain what do you mean by functional overloading in java?
What is classname class in java?
What are void methods?
Why we override equals() method?