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 |
Hi can u pls tell me what is the use of marker interface. Iknow what is marker interface but what ability will the object get by implementing this.
How do I print a “?
What is the differences between heap and stack memory in java? Explain
What is isa relationship?
What is the differnence between String Buffer and String builder despite having knowledge that String builder is faster than String Buffer and last one is threadsafe.please tell another important difference.
What is size of int in java?
What is length in java?
What is the structure of java?
String is a immutable objects . it means that string does not change........... But it will be chang......... { String s="kapil"; String s1="raj"; String s=s1; then print(.......) The String has been changed .. how it is possible and why its called immutable objects
What is the purpose of garbage collection in java? When is it used?
class A { class B { psvm(String args[]) { } } } if the prg saved in A.java whats the o/p?
What is overloading and overriding in java?