What is a Wrapper class?
Answers were Sorted based on User's Feedback
Answer / muhammad taahaa
to store primite data type as objects....
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / 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 |
Answer / rajat dubey
Wrapper classes allow
primitive data types to
be accessed as
objects.They are one
per primitive
type:Boolean,Byte,Character,Double,Float,Integer,Long
and Short.Wrapper
classes make the
primitive type data to
act as objects.
Is This Answer Correct ? | 0 Yes | 0 No |
How do you do descending order in java?
Hai friends I am MCA 2006 passout. Spend time in 1 yr for teacing and 5 months in small s/w firm. worked in 4 or 5 months in few places. Presently I am writing bank exams. I want to get back to IT sector. Are there any possibilities. any growth prospects?. I am having some knowledge in core and advanced java. I am so desperate. Any suggestions thanks in advance. u can write to my mail mahidestiny@gmail.com
How to create an instance of a class if the class has private constructor?
What is the difference between iterator and list iterator?
What is serialVersionUID and what is its need?
Do we need to manually write Copy Constructor?
Explain java thread life cycle.
Is java free for commercial?
Difference between start() and run() method of thread class?
Explain about the select method with an example?
What is use of valueof () in java?
If your team member writes code with lots of static variables and static methods, will it cause any side effects?