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 is passing value java?
What is the difference between @before and @beforeclass annotation?
What are inbuilt functions in java?
What is annotation in java?
what is the purpose of using rmisecuritymanager in rmi?
What is the difference between quicksort & mergesort? When should they be used? What is their running time?
What is codebase?
Why multiple inheritance is not supported by java?
What does main method?
Can Exception handling we can handle multiple catch blocks?
What is double in java?
What is the purpose of methodology?
What are the states of thread in java?
Is a class subclass of itself?
What is console based application in java?