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 |
"we cannot create an object of interface but we can create a variable of it".diacuss the statement with the help of an example.
How do you change an int to a string?
Explain the importance of thread scheduler in java?
What is a default constructor and also define copy contrucyor?
What are teh sub-classes of a component class?
What is bubble sorting in java?
How can you take string into InputStream?
Describe inheritance as applied to java?
How can we find the actual size of an object on the heap?
What is the difference between comparison done by equals method and == operator?
State some advantages of java?
How to use string tokenizer class.