Tuesday, 17 January 2012
JAVA: Wrapper class
Do you like this Article?
Wrapper class is a special type of class that's used to make primitive variables into objects, so that the primitives can be included in activities reserved for objects, like as being added to Collections, or returned from a method with an object return value. It simply wraps or encapsulates a single value for the primitive data types. These classes contain methods that provide basic functions such as class conversion, value testing & equality checks and the constructors of wrapper classes, allow objects can create and convert primitives to and from String objects.
LIST OF WRAPPER CLASS
LIST OF WRAPPER CLASS
Primitive type | Wrapper class | |
1 | boolean | Java.lang.Boolean |
2 | byte | Java.lang.Byte |
3 | char | Java.lang.Char |
4 | double | Java.lang.Double |
5 | float | Java.lang.Float |
6 | int | Java.lang.Int |
7 | long | Java.lang.Long |
8 | short | Java.lang.Short |
Subscribe to:
Post Comments (Atom)








1 Responses to “JAVA: Wrapper class”
22 December 2012 03:28
As we know that JAVA is a pure Object Oriented programming language. But the primitive data type breaks these feature. Bcz primitive data type doesn't use class and object. To overcome this problem The Wrapper class is written, which convert or create the variable in the form of Object. So that JAVA can be said as a pure Object Oriented programming language.
http://www.coolinterview.com/interview/18011/
Post a Comment