How to Create A Wapper Class in core Java and Why are Use in
java?
Answers were Sorted based on User's Feedback
Answer / tanmayy
We use wrapper classes in java so as to objectify the
primitive data types.There are certain wrapper classes for
different data types such as:-
int : Integer
float : Float
boolean : Boolean
etc...
| Is This Answer Correct ? | 16 Yes | 0 No |
Answer / srikanth
int i=100;
here we are converting primitive to wrapper object
Integer i=new Integer(i);
| Is This Answer Correct ? | 14 Yes | 2 No |
Do you know how to reverse string in java?
When can you say a graph to be a tree?
What methodology can be utilized to link to a database?
what is the difference between sleep() and Wait()?
What are wrapped classes?
How to instantiate member inner class?
What is the intersection and union methods?
Is java 1.7 the same as java 7?
What is a generic code?
What is immutable class in java?
Why lambda expression is used in java?
Can a final variable be null?