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 |
Write POJO class as a key to hashmap???
What is constructor and virtual function?
What are the operands of instanceof operator?
What is main function purpose?
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net
What is the difference between the paint() and repaint() methods?
Explain a situation where finally block will not be executed?
Is static a keyword in java?
What is abstraction in java?
0 Answers Akamai Technologies,
What are static variables and functions?
How will you invoke any external process in java?
What is a stringbuilder?