Answer Posted / rakesh
It is sometimes easier to deal with primitives as objects.
Moreover most of the collection classes store objects and
not primitive data types. And also the wrapper classes
provide many utility methods also. Because of these resons
we need wrapper classes. And since we create instances of
these classes we can store them in any of the collection
classes and pass them around as a collection. Also we can
pass them around as method parameters where a method expects
an object.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are operators and its types?
How many types of methods are there in java?
Can arraylist hold different types java?
What is the exact difference in between Unicast and Multicast object?
Which is the class in java?
why are there separate wait and sleep methods? : Java thread
What is the difference between a checked and an unchecked exception?
what is the major difference between linkedlist and arraylist in java?
What are the characteristics of java?
What is the major drawback of internal iteration over external iteration?
Does java have a compiler?
What is a numeric literal?
What are the ways in which a thread can enter the waiting state?
Is there a sort function in java?
What are the differences between graph and tree?