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 file class and what is its purpose?
How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?
os is developed in c no java is more secured then c na why dont the os developed is developed using java
Can you override a private or static method in java?
What are some characteristics of interference class?
difference throws and throw in java
When can you say a graph to be a tree?
Tell me how many ways are there to initialise an integer with a constant.
What are the 8 data types in java?
What is oop principle in java?
What is a flag and how does it work?
What are new features introduced with java 8 ?