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 |
How can we handle runtime exceptions? write one sample program? Can we write runtime exceptions beside the throws key word? if yes write sample program?
What is the meaning of flag day?
In which language JVM (Java Virtual Machine) is implemented
What is object cloning in Java?
0 Answers SwanSoft Technologies,
Read data from console and print in one file. That would be in C:\temp ? Thanks, Bose
3 Answers Oracle, Surya Software,
What is hash table in java?
Why stringbuilder is not thread safe in java?
what is difference between prepare stetement and callable starement with example?
I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?
What is the advantage of OOP in java?
What is the use of ?this??
I have a Person object with 5 variables and I want to store them in a file called Person.txt. What should I do?