Introduction to Wrapper classes in Java | Core Java Online Course

This Core Java Online Course “Introduction to Wrapper classes in Java” is providing clean introduction about what is wrapping in java, availability of wrapper classes in java, what is Boxing and un boxing and much more.


Wrapper Classes:

  • java is not fully Object Oriented programming language.
  • If any language supports ‘primitive types’ referred as partial object oriented programming language.
  • Small talk, Ruby are the few examples of Fully object oriented programming language.
  • To develop fully object oriented java application, we need to convert primitive data into Objects.
  • java.lang package is providing pre-defined classes called “wrapper classes” for these data conversions.
  • for every primitive data type, there is a corresponding wrapper class.

Wrapper classes in java


  • ‘java.lang’ package is called default package in java.
  • ‘lang’ package classes available directly into every java application.
  • ‘lang’ package classes mostly used by basic java programmers(learners).


Wrapper classes Conversions:

  • Wrapper classes mainly used for data conversions.
  • The 6 mainly used data conversion in java application stated below.


  1. Primitive to Object (Boxing)
  2. Object to Primitive (Un boxing)
  3. Primitive to String
  4. String to Primitive
  5. Object to String
  6. String to Object
Share this