How to Create A Wapper Class in core Java and Why are Use in
java?

Answers were Sorted based on User's Feedback



How to Create A Wapper Class in core Java and Why are Use in java?..

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

How to Create A Wapper Class in core Java and Why are Use in java?..

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

Post New Answer

More Core Java Interview Questions

What is scope & storage allocation of global and extern variables? Explain with an example

0 Answers   IBS,


Can a static method be final?

0 Answers  


What is a text string?

0 Answers  


Difference between JDK, JRE, JVM

16 Answers   Deloitte, HCL, Mind Tree, Oracle, Reliance, TCS, ThinkBox,


how do I create a runnable with inheritance? : Java thread

0 Answers  






Explain about static nested classes in java?

0 Answers  


What is keyword auto for?

0 Answers  


What are the two parts of a conditional statement?

0 Answers  


Is null a string?

0 Answers  


What is parse method?

0 Answers  


What are internal and external variables?

0 Answers  


Why do you canvas?

0 Answers  


Categories