What is a Wrapper class?

Answer Posted / kanaparthi srinivas

ExAMPLE:

int i=100 // declaration of primitive type.

/* wrapping the primitive data type to corresponding wrapper
class object */

Integer i1=new Integer(i);

Is This Answer Correct ?    31 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many ways can we create singleton class?

488


What is a values collection view ?

672


How can you make a class serializable in java?

557


Can you give few examples of final classes defined in java api?

543


Is java an ide?

511






What is method overloading in java ?

544


What carriage return means?

514


Which variable is the independent variable?

522


Are global variables initialized to zero?

495


What is the size of integer?

572


How many bits is a string?

515


What is thread life cycle in java?

570


Explain about the select method with an example?

577


Where and how can you use a private constructor?

522


What is a condition in programming?

542