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 |
What is the format of Inner Class after it compiled?
please send me hr interview questions in it industry
Does anyone still use java?
What is difference between throw and throws ?
Is oracle java 11 free?
Is it possible to make an array volatile?
What is the use of flag?
What is Java Shutdown Hook?
Can we call the constructor of a class more than once for an object?
Which of the classes will have more memory allocated?
Is string an object?
What is map java?