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 incompatible types in java?
What defines function?
What is difference overloading and overriding?
What are the four versions of java?
Can a class be private?
What are the advantages of java inner classes?
What is ++ a in java?
What are parsers? Dom vs sax parser.
Can we create a constructor in abstract class?
How many bits is a float?
What is the function of http?
What is == and === in javascript?
Which data type is a class in java?
What are static variables and functions?
What are the differences between abstract class and interface?