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 is the base class of all exception classes?
what is meant wrapper classes?
How concurrent hashmap works?
Explain hashset and its features?
What is finalize()?
Explain the Propertie sof class?
Explain the difference between private, public, package and protected in java?
Is array passed by reference in java?
Can we use both this () and super () in a constructor?
What is a percentage sign called?
what is encapsulation in java? Explain
What is method in research paper?
How many types of parsers are there?
Can a lock be acquired on a class in java programming?
Why declare Main() inside the class in java ?