Wrapping an Object

What does "wrapping" an object mean?

Questions by jegacjb86

Showing Answers 1 - 27 of 27 Answers

The process of writing a primitive data type into an object is called wrapping an Object 

Generally wrapped object contain value of primitive type(int, float, double, boolean)

  Was this answer useful?  Yes

Putting an object as an member variable of another object(say domain object) for providing more functionality or for business purpose is called wrapping an object. Example: wrapper classes that wraps primitive types such that primitive type values can be treated as objects

yaminik_it

  • Sep 8th, 2008
 

It provides wrapper classes to manipulate primitive data elements as objects, such data elements are wrapping an object. Primitive data types wil be boolean, int ,float, double, char, Wrapper class will be Boolean, Integer, Float, Double, Character.

ranaraj

  • Dec 1st, 2008
 

As we know that Java is not fully (100%) object oriented programming
language, because we use some predefined instance like int, float, et al. so we
use wrapping class to change this thing into object.
Simple class name wrapper class name
test Test
student Student

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions