28 - Wrapper classes in Java

preview_player
Показать описание
Wrapper classes are used to convert any data type into an object. The primitive data types are not objects; they do not belong to any class; they are defined in the language itself. Sometimes, it is required to convert data types into objects in Java language.

MUSIC:
Artist: Nicolai Heidlas
Title: The Countdown
**************************
Download the song here:
---------------------------------------------------------
Back Music
Artist: Nicolai Heidlas
Title: On And On
---------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

Thanks for the video @Codearchery!
Interesting to note that the "Void" class is a wrapper for the primitive return type "void" in java. We use this mainly when returning from "Future"s. As a side note, it's interesting to know about how java deals with these wrapper objects in memory.

For those who are keen on a very deep understanding, check out "Perm Gen" in Java. It was made obsolete in Java 8, but has some good lessons to learn from.

gkcs
Автор

amazing work, this is one of the best tutorials I have seen, it's informative, without overcomplicating the subject!

cloud
Автор

this is next level yar, anyone can understand java like this best way, great lovely, hatts off man just don't stop making videos like this..

sagarhatti
Автор

This video is so well done, thank you for helping me with my CS class!

arunasrivastava
Автор

thank you so much, best explanation of anything i have ever seen, thank you so much for your efforts :)

fyune
Автор

Autoboxing: Converting a primitive value into an object of the corresponding wrapper class is called autoboxing.
Unboxing: Converting an object of a wrapper type to its corresponding primitive value is called unboxing.

ThinboxStudios
Автор

Thank you so much!! This is an AMAZING VIDEO !!!!

tybargky
Автор

Bro your video was really precise. The moment I watched this video I liked & subscribed. Your way of teaching is very good. Unfortunately, YouTube algorithm sucks.

viithalbhat
Автор

Now it is possible to write Integer a = 20; int b = a; we can do it directly

Samad_
Автор

Excellent demonstration bro. It helped. Thanks a lot

stunninggowri
Автор

amazing video man. I am new to programming and this was probably the best vdio on this. I have a question, can we write wrapper classes of our own? can u plz explain with an example?

visheshmishra
Автор

Just awesome explanations...
Keep it up...

vigneshrasa
Автор

Integer i = new Integer(10) - its rarely used. Unnecessary boxing 'new Integer(19)'
'Integer(int)' is deprecated

bagoahmadov
Автор

Thank you for the video. I'm still not clear on the need to make a primitive an object, to me it seems easier to just used primitive. I'm sure there are more complex reasons to use them, but what are some applications for wrapper classes?

steffanomalaga
Автор

The tutorial was quiet good. Can you make it scripted and more informative to turn it great?

sarderfarhannasirzilan
Автор

You write dots incorrectly. In English, dots in the middle (how you write them) means multiplication. You want to write the dots at the bottom to symbolize dots, decimal points, etc.

Wes-Tyler
Автор

Bro vedio was awsum but a sujjesion always use white background...

manishpushpkar
Автор

How to define a custom type for both account and contact object using wrapper class?

Thanks,

noorpasha
Автор

Still confused about the unboxing. int j = i intValue doesn't make sense to me. Is it being multiplied? if so, it would need an asterisk, not a dot. Is it supposed to be i.intValue();?

SammyBoo
Автор

wow just very informative, thank you a lot . I have a request what is the name of the background music you have put during the video

nslover