Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position


Join the forum, it's quick and easy

Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position
Virtual Position Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

what is the concept of Wrapper Classes in java

View previous topic View next topic Go down

GMT + 3 Hours what is the concept of Wrapper Classes in java

Post by Diya Sun May 29, 2011 3:59 pm

what is the concept of Wrapper Classes,
what are the usage and advantages of that classes?
Diya
Diya
Monstars
Monstars

Taurus Goat
Posts : 364
Join date : 2011-02-08
Age : 32
Notworthy

Character sheet
Experience:
what is the concept of Wrapper Classes in java Left_bar_bleue10/500what is the concept of Wrapper Classes in java Empty_bar_bleue  (10/500)

Back to top Go down

GMT + 3 Hours Re: what is the concept of Wrapper Classes in java

Post by Vuhelper Sun May 29, 2011 3:59 pm

A primitive data type is not object; in java most of the time objects are used. To use a primitive data type as object we need to wrap it into a its corresponding object class.
A primitive wrapper class in the Java programming language is one of eight classes provided in the java.lang package to provide object methods for the eight primitive types.

Primitive type Wrapper class
byte Byte
short Short
int Integer
long Long
float Float
double Double
char Character
boolean Boolean

These wrapper classes are very important as in many cases we need objects, e,g. many functions do not accept primitive data type as arguments they require objects.
avatar
Vuhelper
Deep Bench
Deep Bench

Posts : 97
Join date : 2011-05-29

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum