use of wrapper classes?
Answers were Sorted based on User's Feedback
Collection accepts only object not primitive data-type And
server also works on only Objects.
So By help of wrapper class we can convert primitive
data-type to Object.
| Is This Answer Correct ? | 18 Yes | 0 No |
Answer / vino
wrappper class uses for primitive datatype act as object.
ex:int-Integer
| Is This Answer Correct ? | 0 Yes | 0 No |
Wrapper classes are used to wrap primitive types (eg: int,
double, etc) in Objects which can be placed into Vectors,
and many, many other uses.
Following table lists the primitive types and the
corresponding wrapper classes:
Primitive Wrapper
Boolean java.lang.Boolean
Byte java.lang.Byte
Char java.lang.Character
double java.lang.Double
Float java.lang.Float
Int java.lang.Integer
Long java.lang.Long
Short java.lang.Short
Void java.lang.Void
| Is This Answer Correct ? | 1 Yes | 3 No |
How many types of variables are there?
what is the Use of throws exception?
Tell me the difference between an applet and a Japplet?
can abstract class have constructor how can you achive this ?
what r callable statement and give their proper use
class A { class B { psvm(String args[]) { } } } if the prg saved in A.java whats the o/p?
What is means by DLL file means ? What is the use of DLL file? What are the contents of DLL file?
What does void * mean?
What methods are used in Servlet?Applet communication?
What does null mean in java?
why java does not support unsigned keyword?
What are the limitations of procedural programming approach?