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 concurrent hashmap works?
Why are arrays useful in java?
What is constructor chaining in java?
What are Interceptors?
What is a line break?
What is escape analysis algorithm in JVM and how garbage collection actually worked n how it transfer the objects from one kind of space to other?
What are streams?
What is the benefit of lambda expressions?
What is the use of default method in interface in java? Explain
What is the use of hashmap in java?
What is final class?
what questions are been asked ??? for interview in apti