Back to Top

Wednesday, 18 January 2012

JAVA: Wrapper class

  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



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

9 Responses to “ JAVA: Wrapper class ”

Hina Murthy said...
22 December 2012 at 16:58

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/


Clover said...
27 August 2013 at 13:29

This is really a great read for me. Thank you for publishing articles having a great insight stimulates me to check more often for new write ups. Keep posting!

Clover
www.n8fan.net


Leslie Lim said...
8 October 2014 at 09:26

I really like your ideas. I truly appreciate your effort in publishing this article. Keep it up and God bless.

Bless
www.imarksweb.org


lee woo said...
21 October 2014 at 07:08

Love it! Very interesting topics, I hope the incoming comments and suggestion are equally positive. Thank you for sharing this information that is actually helpful.


matreyastudios
matreyastudios.com


sarah lee said...
2 December 2014 at 06:42

I really enjoyed reading your article. I found this as an informative and interesting post, so i think it is very useful and knowledgeable. I would like to thank you for the effort you have made in writing this article.


edupdf.org


joy said...
4 February 2015 at 08:16


Hi, I hope you have a good day. Thank you for inspiring us. You bring joy to our face.visit my site if you have time.

kieth

www.n8fan.net


Naviya Nair said...
24 October 2016 at 15:01

I have read your blog its very attractive and impressive. I like it your blog.

Java Training in Chennai Java Training in Chennai | Core Java Training in Chennai

Online Java Training Java 8 Online Training | Java J2EE Online Training | JavaEE Training Institute in Chennai Java Training Institutes

Java Training Institutes in Chennai Java Training in Chennai


Lucky Srivastava said...
1 May 2017 at 15:13

Hey Nice blog,Thanks for sharing this blog.!!!

Embedded system training in lucknow

Best python training in lucknow

php industrial training in Lucknow

Live projects training in Lucknow

B-tech projects in Lucknow


Anonymous said...
25 May 2017 at 15:56

this is really very useful post about wrapper class
thank you so much for this post.


Post a Comment

Popular Posts

Subscribe via Email
Subscribe Java Interview Questions via Email
All Rights Reserved JAVA INTERVIEW QUESTIONS | Privacy Policy | Anijit Sarkar
blog links Web Directory Academics Blogs