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
Implement two stacks using a single array.
What is the use of static methods?
How many wrapper classes are there in java?
Which is the class in java?
What is the use of put method?
What are daemon Threads in java?
Is java a prime method?
What is native method in java?
What is a priority queue java?
Is upper case in java?
Give an example of call be reference significance.
Why we go for collections in java?
What is string and example?
What is unicode datatype?
Are functions objects in java?