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 |
Why doesn't the java library use a randomized version of quicksort?
What will be the initial value of an object reference which is defined as an instance variable?
What is the difference between call by reference and call by pointer?
Can a class be private or protected in java?
What is string example?
What is difference between fileinputstream and filereader in java?
Describe the syntax of multiple inheritance? When do we use such an inheritance?
How to access arraylist elements in java?
What is a website container?
Can an interface be defined inside a class?
What is an array and a vector? How they different from each other?
what is associative array