• Post Reply Bookmark Topic Watch Topic
  • New Topic

Wrapping  RSS feed

 
kazi Shahin
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm try to understand wrapping but it seems difficult to me. I need your help. What is the main thought of java wrapping. How it create.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12563
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're asking what 'wrapping' is, it's basically just creating a class that holds some other existing class. You can then give your new class additional functionality, keeping the original functionality as well.
 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by wrapping? Autoboxing of primitives? Or wrapping for instance a BufferedReader and an InputStreamReader.
 
kazi Shahin
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. Actually I don't understand the thought of wrapping. I need a total guideline for wrapping. I know that you can help me to understand it better.
 
Campbell Ritchie
Marshal
Posts: 56525
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Effective Java™ by Joshua Bloch, pages 81-86, especially 83-85.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!