What is meant by wrapper classes?

Answer Posted / vishnu

Wrapper class is a wrapper around a primitive data type. It
represents primitive data types in their corresponding class
instances e.g. a boolean data type can be represented as a
Boolean class instance. All of the primitive wrapper classes
in Java are immutable i.e. once assigned a value to a
wrapper class instance cannot be changed further.

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the different between get and post?

510


What do you mean by platform independence? What is an interface?

573


What is a string token?

543


What is string array?

587


Can we pass null as argument in java?

516






What is jrmp?

556


What are the Class Libraries ?

601


Explain the difference between a Thread and a Process.

574


What is the purpose of nested class in java?

611


Explain the importance of join() method in thread class?

650


What is difference between variable declaration and definition?

523


Why Java is not pure Object Oriented language?

661


Explain numeric promotion?

600


Explain a situation where finally block will not be executed?

584


Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?

569