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
If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?
what is interface in java? Explain
What is difference between java and java ee?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
What is substring 1 in java?
What is the instance of an object?
What is bytecode verifier?
What is the maximum size of arraylist in java?
Write a program to find maximum and minimum number in array?
What is the differences between heap and stack memory in java? Explain
What is a layout manager and what are different types of layout managers available in java awt?
What is compareto () in java?
What is java volatile?
What is use of inner class in java?
Can vector have duplicates in java?