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
Can we execute a program without main() method?
Why java is called not pure object oriented language?
Variables used in a switch statement can be used with which datatypes?
What is synchronization and why is it important in java programming?
What is variable explain with example?
Where are register variables stored?
What is functional interface in java example?
Write a program based on Java script program.
What is assembly condition codes?
What are the uses of java?
What is difference between identifier and variable?
What is immutable class in java?
How many types of constructors are used in java?
What is difference between class and object in java?
What is arguments in java?