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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any sort function in java?

579


What do you mean by data type?

552


What is hashmap in java?

573


How do you create a sop?

537


How do you create a null object?

516






What is function and its uses?

575


What is boolean flag in java?

582


What is constant in programming?

560


I want to print “hello” even before main is executed. How will you acheive that?

664


Can we make main() thread as daemon?

582


What is the current version of java?

547


Differentiate between a class and an object.

569


Can I learn java without any programming experience?

562


Which java collection does not allow null?

717


What’s a deadlock?

616