#60 Wrapper Class in Java
ฝัง
- เผยแพร่เมื่อ 8 ก.พ. 2025
- Check out our courses:
Java Full Stack and Spring AI - go.telusko.com...
Coupon: TELUSKO10 (10% Discount)
DevOps with AWS: From Basics to Mastery : go.telusko.com...
Coupon: TELUSKO10 (10% Discount)
Master Java Spring Development : go.telusko.com...
Coupon: TELUSKO20 (20% Discount)
For More Queries WhatsApp or Call on : +919008963671
Udemy Courses:
Spring: go.telusko.com...
Java:- go.telusko.com...
Java Spring:- go.telusko.com...
Java For Programmers:- go.telusko.com...
Python : go.telusko.com...
Git : go.telusko.com...
Docker : go.telusko.com...
website : courses.telusk...
In this lecture we are discussing about wrapper class:
if you want to store integer value you store in int
java provide primitive data type
thats why java is 99.9 % object oriented programming
primitive data types helps us to improve the performance
but certain feature are work only when we work with objects
for collection framework -- we need non primitive type data as input
byte -Byte
int - Integer
long -Long
char- Character
double -Double
float -Float
boolean -Boolean
Boxing:It is manual method to convert primitive type data into non-primitive type .
e.g
int num=7;
Integer num1=new Integer(8); //boxing
UnBoxing: It is manual method to convert non-primitive data type to primitive type.
e.g
int num2=num1.intValue(); //unboxing
AutoBoxing:It is automatic conversion of primitive type data into non-primitive data type.
int num3=5;
Integer num4=num3; //autoboxing
AutoUnBoxing:It is automatic conversion of non primitive type data into primitive data type.
int num5=num4; //autounboxing
int num=7;
how to store data as Object
Integer num1=new Integer(8); //this syntax is depreciated
Integer num1=Integer.valueOf(8); //Now we use this syntax
Integer num1=8; //autoboxing
int num2=num1.intValue();//unboxing
int num3=num1; //autounboxing
--convert string into int type using parseInt
String str="12";
int num4=Integer.parseInt(str);
--Convert number into String
String str1=Integer.toString(23); //convert number into string
Github repo : github.com/nav...
Instagram : / navinreddyofficial
Linkedin : / navinreddy20
Discord : / discord
Java:- bit.ly/JavaUde...
Spring:- bit.ly/SpringU...
More Learning :
Java :- bit.ly/3x6rr0N
Python :- bit.ly/3GRc7JX
Django :- bit.ly/3MmoJK6
JavaScript :- bit.ly/3tiAlHo
Node JS :- bit.ly/3GT4liq
Rest Api :-bit.ly/3MjhZwt
Servlet :- bit.ly/3Q7eA7k
Spring Framework :- bit.ly/3xi7buh
Design Patterns in Java :- bit.ly/3MocXiq
Docker :- bit.ly/3xjWzLA
Blockchain Tutorial :- bit.ly/3NSbOkc
Corda Tutorial:- bit.ly/3thbUKa
Hyperledger Fabric :- bit.ly/38RZCRB
NoSQL Tutorial :- bit.ly/3aJpRuc
Mysql Tutorial :- bit.ly/3thpr4L
Data Structures using Java :- bit.ly/3MuJa7S
Git Tutorial :- bit.ly/3NXyCPu
Donation:
PayPal Id : navinreddy20
www.telusko.com
My one and only programming teacher in the world. Love from Nepal
these are much better than the old ones , i love them , these are short and much fun to watch
ofcourse
This is gold. Thank you!
It can help us understand, the important question in the interview - Difference between primitive type variable and a wrapper class for ex. int and Integer.
so, how can you differentiate in one single line?
@@LokeshM-q9va class who wrap primitives into objects form
Or
Predefined class of java which contains primitive data type
@@LokeshM-q9v As per my understanding, if you want to store simple values, use primitive. But when you want to leverage OOPS or take advantage of OOPS, use wrapper classes. The memory usage of primitive is smaller. for example int is 4 bytes. but Integer is an object so it occupies some good amount of space in the heap memory. You must use Wrapper classes when working with collections.
I asked chatGPT to suggest good youtube channel to learn python and it shows your channel in top 5 .. 👏👏
But i already learned python from ur channel 😂
i got the joke
@@NANDA-gq2wime too lol
@@harshit9634 what s the joke
Thank you this is very helpful for the interview.
int num = 7; // normal assignment
Integer num1 = new Integer(num); // boxing
Integer num11 = num; // auto-boxing
int num2 = num11.intValue(); // unboxing
int num2 = num11; // auto-unboxing
thanks a lot don't stop making videos we are waiting
Thank you it's very helpful
Thank you so much sir ❤❤
Pls upload javascript course like you upload for java
Bruh, thanks a lot , day after tomorrow is my cs examination in ICSE 10 and I was confused in this wrapper class . This helped me a lot
Ye btech ka syllabus 10th me padh rahe ho tmlog 😢😢
@@savage_001 padh ke pass bhi ho gya with 97/100 in cs
Thank you, Sir.
Thank you, can you do a video with programming questions? so that children can have revision?
Thank You.
Sir are these tutorials different from the ones previously(3yrs ago) tutorial playlist
bcuz I am watching them
ParseInt wala achha laga : ).
awesome ❤
similarly
// Converting Integer to String
Integer myInt = 456;
String str = myInt.toString();
I think , better use String.valueof();
and now, we can't use new Integer anymore :)
what is the tool name that you are using
I want spring boot update I can’t wait to see ya content
Bro what platform are you using to write the code
Pls tell and share with me
Visual Studio Code is the IDE he's using
💗 హాయ్ సార్ 🖤 కళ్ళతో చూడలేకపోయినా విని అర్థం చేసుకుంటూ ఉన్నాను కళ్ళు లేవు కదా కామెంట్ ఎలా పెట్టారు అనే డౌట్ ఎవరికైనా వస్తే Ramesh blind అనే టైటిల్ పైన ఉన్న వీడియోస్ చూడండి
Integer b = (Integer) a ;
what about it sir :>
Sir how did you get that Integer file containing all the infomartion about it on vs code?
Any blockchain course??
Sir, Why do we initialize object?
To access the value by passing object reference variable in sout
hello sir, i need to learn spring from scratch, then go to spring boot, what is the path?
Sir please upload C# video also .
when i taken as integer as string and printing directly without converting its working fine how
durga sir having good teaching skills and less technical skills
The Bitcoin transfer is a done deal-time to celebrate!
Hi bro explain about how to create ear file because no one can explain properly video if you can explain easy to understand this is my queries
Which ide is this
Visual Studio code
Hii i need small query..
How to log out user if the login is already present in another browser or another window... Suggest me
You can use windows handle in selenium
0:31 .
u have very good technical skills and less teaching skills.
oh why you are teaching the same topic again, is it just for the money or we will get anything extra from this video
discord like doesnot work
But what is wrapper class? lol
Lund
India ko coding sikhana hai to hindi bolo.....🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳
Interview crack krna h toh English sikho!!
i am unsubscribe you because your making paid course
Thank you it's very helpful