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 |
In Inheritence concept, i have a static method in super class and i am inheriting that class to one sub class.in that case the static method is inherited to sub class or not????
what is platform independence in java?
How to Sort Strings which are given in List and display in ascending order without using java api.
What is the difference between dom and sax parser in java?
What is variable argument in java?
what are the differences between final,finally,finalize methods?
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion
define polymorphism in java
what is meant by Byte code concept in Java?
What do you mean by exception handling in Java?
Write a program to solve producer consumer problem in java?
What are operators and its types?