What are Wrapper Classes? Describe the wrapper classes in Java. - JAVA Interview Questions

What are Wrapper Classes? Describe the wrapper classes in Java.


Wrapper classes are classes that allow primitive types to be accessed as objects. Wrapper class is wrapper around a primitive data type.

Following table lists the primitive types and the corresponding wrapper classes:

Primitive

Wrapper

Boolean

java.lang.Boolean

Byte

java.lang.Byte

Char

java.lang.Character

double

java.lang.Double

Float

java.lang.Float

Int

java.lang.Integer

Long

java.lang.Long

Short

java.lang.Short

Void

java.lang.Void



Click Here to See Answer .....
Did you like this article ?
Subscribe to my RSS feed and get more JAVA Question, and Guideline, Plus a lot more great advice to help your Software Career.

0 comments:

Related JAVA Questions Posts