GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  Core Java
Go To First  |  Previous Question  |  Next Question 
 Core Java  |  Question 491 of 493    Print  
Wrapping an Object
What does "wrapping" an object mean?


  
Total Answers and Comments: 7 Last Update: December 02, 2008     Asked by: jegacjb86 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: rameshcpbakhya
 

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



Above answer was rated as good by the following members:
prikshit chauhan
July 28, 2008 07:35:51   #1  
GMadhavaReddy222 Member Since: July 2008   Contribution: 3    

RE: Wrapping an Object
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)

 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
July 29, 2008 22:13:49   #2  
rameshcpbakhya Member Since: July 2007   Contribution: 1    

RE: Wrapping an Object

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


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
September 08, 2008 09:21:20   #3  
yaminik_it Member Since: August 2008   Contribution: 1    

RE: Wrapping an Object
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.
 
Is this answer useful? Yes | No
September 13, 2008 22:16:11   #4  
nookashiva Member Since: September 2008   Contribution: 2    

RE: Wrapping an Object
 The process converting the Primitive datatype into object (Interger,Float...ect).

Ex: Interget i=new Interger(100);

 
Is this answer useful? Yes | No
October 05, 2008 07:31:40   #5  
rashmisudha Member Since: October 2008   Contribution: 2    

RE: Wrapping an Object
wrapping means converting a primitive data type into an object type .
example.......Integer i=new Integer(25) or Integer i=new Integer("25")

 
Is this answer useful? Yes | No
October 13, 2008 13:04:43   #6  
bharathnav Member Since: October 2008   Contribution: 2    

RE: Wrapping an Object
WRAPPING AN OBJECT means converting a primitive data type to an object type and vice versa..
 
Is this answer useful? Yes | No
December 01, 2008 05:16:22   #7  
ranaraj Member Since: November 2008   Contribution: 2    

RE: Wrapping an Object

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


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape