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

14 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 This comment has been removed by the author.

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

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


Java Online Training said...
22 August 2017 at 15:43

Thanks for a great information in your blog. I have read all the post of your blog.
Regards,
Java Online Training | Java Online Training in India | Java Online Training India | Java Online Training in Hyderabad | Java Online Training Hyderabad | Java Training in Hyderabad | Java Training in India | Java Training Institutes in India | Java Training Institutes in Hyderabad | Java Course in Hyderabad | Java Training | Learn Java Online | Online Java Training | Best Java online Training Institutes in Hyderabad | Best Java Training Institutes in Hyderabad | Best Institutes for Java | Java Institutes in Hyderabad | Best Institutes for Java in Hyderabad | Learn Java | Java Training Institutes in Hyderabad | Java Certification | Java Certification Training | Java Certification Training in Hyderabad | Java Certification Training in India


Jordan Alexo said...
24 January 2018 at 14:53

Thank you for this brief explanation and ver nice information. well, got a good knowledge. Have a nice idea, this is more helpful to me. This can gives the better performance.
Java training in Chennai||
J2ee training in Chennai


merlinmadonna said...
14 March 2018 at 14:23

Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing your valuable information and time. Please keep updating.
oracle training in chennai|| hadoop training in chennai


Jordan Alexo said...
4 April 2018 at 14:27

Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging…
Regards,
hadoop training in chennai || selenium training in chennai





Kevin Lee said...
20 April 2018 at 13:16

Hi There,

Amaze! I have been looking Bing for hours because of this and I also in the end think it is in this article! Maybe I recommend you something helps me all the time?
This may well belong in the New to Java section but I keep getting logged out every time I enter that forum.
I am creating code to issue tickets to passengers on 4 different bus routes, I am going to contain them in an array.
Although, I have hit a wall in writing this code and I am stumped. I will post the 3 classes I have so far and the error I am getting.
Lots of optimization can be done around String, as this object is most used object in almost all applications. String pool provided by JVM can be used judiciously. However, there are some concerns.
Also, I would welcome any sort of guidance or recommendations.
Awesome! Thanks for putting this all in one place. Very useful!

Thank you,
Alex


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