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 final keyword in java? Give an example.
What is an array in java?
When does Exception occurs?
What is the syntax and characteristics of a lambda expression?
What are the differences between unchecked exception, checked exception, and errors?
Is null a value?
Is vector synchronized in java?
When is finally block not called?
What is meant by class loader and how many types are there?
What does the append?
How do you use final keywords and final variables in Java?
What is the difference between actual and formal parameters?