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

 Print  |  
Question:  Wrapping an Object

Answer: What does "wrapping" an object mean?


December 12, 2008 08:08:13 #8
 karthik_knight2000   Member Since: January 2008    Total Comments: 3 

RE: Wrapping an Object
 
Wrapping an object means we are covering that object, say for example  in Java we can say String is a class as well as String is a data type.

String s;   // here s is object of String class

    String.valueOf(12) // here String is a class , valueOf() is a method, valueOf() method works without called by String Object
     

 

Back To Question