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 the static method?
Does java allow overriding static methods ?
why the abstract class has default constructor?
what is an objects lock and which objects have locks? : Java thread
where u use Abstraction and Interface in real time
Can an interface implement another interface?
How do you join strings in java?
Is char * a string?
What are the different approaches to implement a function to generate a random number?
0 Answers Axtria, ITC Indian Tobacco Company,
What is the purpose of using break in each case of switch statement?
Can we overload the methods by making them static?
What is the += operator called?