Тёмный

#60 Wrapper Class in Java 

Telusko
Подписаться 2,4 млн
Просмотров 177 тыс.
50% 1

Check out our courses:
Enterprise Java Spring Microservices: 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

Опубликовано:

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 55   
@Wisdomizer
@Wisdomizer Год назад
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.
@user-wz8vw4bl3r
@user-wz8vw4bl3r 6 месяцев назад
so, how can you differentiate in one single line?
@zomssingh8744
@zomssingh8744 6 месяцев назад
​@@user-wz8vw4bl3ra class who wrap primitives into objects form Or Predefined class of java which contains primitive data type
@gowthamivallabhadasu2523
@gowthamivallabhadasu2523 6 месяцев назад
@@user-wz8vw4bl3r 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.
@bijenadhikari
@bijenadhikari Год назад
My one and only programming teacher in the world. Love from Nepal
@anudeepthodupunoori7115
@anudeepthodupunoori7115 Год назад
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 😂
@NANDA-gq2wi
@NANDA-gq2wi 7 месяцев назад
i got the joke
@zr0724
@zr0724 Год назад
these are much better than the old ones , i love them , these are short and much fun to watch
@divyavats5303
@divyavats5303 5 месяцев назад
ofcourse
@nikhilagrawal9217
@nikhilagrawal9217 9 месяцев назад
Thank you this is very helpful for the interview.
@Sedeerah
@Sedeerah Год назад
This is gold. Thank you!
@anonymous.reddy0
@anonymous.reddy0 Год назад
thanks a lot don't stop making videos we are waiting
@sravanit2002
@sravanit2002 8 месяцев назад
Thank you it's very helpful
@randomperson-yj1xo
@randomperson-yj1xo 5 месяцев назад
Thank you, can you do a video with programming questions? so that children can have revision?
@AravStark
@AravStark 9 месяцев назад
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
@monishzeek5862
@monishzeek5862 Год назад
Pls upload javascript course like you upload for java
@rameshblindlifestyle
@rameshblindlifestyle Год назад
💗 హాయ్ సార్ 🖤 కళ్ళతో చూడలేకపోయినా విని అర్థం చేసుకుంటూ ఉన్నాను కళ్ళు లేవు కదా కామెంట్ ఎలా పెట్టారు అనే డౌట్ ఎవరికైనా వస్తే Ramesh blind అనే టైటిల్ పైన ఉన్న వీడియోస్ చూడండి
@aswiniavula8573
@aswiniavula8573 Месяц назад
what is the tool name that you are using
@immortal_here
@immortal_here 6 месяцев назад
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
@savage_001
@savage_001 29 дней назад
Ye btech ka syllabus 10th me padh rahe ho tmlog 😢😢
@immortal_here
@immortal_here 29 дней назад
@@savage_001 padh ke pass bhi ho gya with 97/100 in cs
@ritwikdurga3855
@ritwikdurga3855 Год назад
Sir are these tutorials different from the ones previously(3yrs ago) tutorial playlist bcuz I am watching them
@ahmadabadi_jainil
@ahmadabadi_jainil 11 месяцев назад
Thank you so much sir ❤❤
@xurdeor3247
@xurdeor3247 8 месяцев назад
similarly // Converting Integer to String Integer myInt = 456; String str = myInt.toString();
@MoeMoe-qr7od
@MoeMoe-qr7od 7 месяцев назад
I think , better use String.valueof();
@PipsMastery
@PipsMastery 3 месяца назад
Sir how did you get that Integer file containing all the infomartion about it on vs code?
@yashuy3279
@yashuy3279 Год назад
Thank you, Sir.
@jaisuriya9552
@jaisuriya9552 Год назад
Integer b = (Integer) a ; what about it sir :>
@christhelemaque4187
@christhelemaque4187 Год назад
I want spring boot update I can’t wait to see ya content
@basudevpaul8417
@basudevpaul8417 Год назад
ParseInt wala achha laga : ).
@rayananaresh3125
@rayananaresh3125 10 месяцев назад
Bro what platform are you using to write the code Pls tell and share with me
@salmanrizwan9076
@salmanrizwan9076 7 месяцев назад
Visual Studio Code is the IDE he's using
@Bdbdjdidnbwk
@Bdbdjdidnbwk 6 месяцев назад
and now, we can't use new Integer anymore :)
@unemployedcse3514
@unemployedcse3514 3 месяца назад
awesome ❤
@vijayt8844
@vijayt8844 Год назад
Hii i need small query.. How to log out user if the login is already present in another browser or another window... Suggest me
@SHASHANKRUSTAGII
@SHASHANKRUSTAGII Год назад
hello sir, i need to learn spring from scratch, then go to spring boot, what is the path?
@zulfiqar7967
@zulfiqar7967 Год назад
Any blockchain course??
@mahendrarajv3892
@mahendrarajv3892 Год назад
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
@user-ll5qj9tj5c
@user-ll5qj9tj5c 5 месяцев назад
when i taken as integer as string and printing directly without converting its working fine how
@Mary__b46
@Mary__b46 2 месяца назад
The Bitcoin transfer is a done deal-time to celebrate!
@jagadeeshsadam9990
@jagadeeshsadam9990 Год назад
Sir please upload C# video also .
@susobhandas18
@susobhandas18 8 месяцев назад
Sir, Why do we initialize object?
@SaiErukulla
@SaiErukulla 7 месяцев назад
To access the value by passing object reference variable in sout
@tusharrawat859
@tusharrawat859 Год назад
Which ide is this
@gujjushanmukhasaipavankuma8983
Visual Studio code
@subhanishaik7745
@subhanishaik7745 Год назад
durga sir having good teaching skills and less technical skills
@subhanishaik7745
@subhanishaik7745 Год назад
u have very good technical skills and less teaching skills.
@Pavankumar-xl4ov
@Pavankumar-xl4ov Год назад
oh why you are teaching the same topic again, is it just for the money or we will get anything extra from this video
@iIrfanhussain
@iIrfanhussain Год назад
discord like doesnot work
@laljibhaitalpada3950
@laljibhaitalpada3950 Год назад
India ko coding sikhana hai to hindi bolo.....🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳
@nomadvishal1306
@nomadvishal1306 Год назад
Interview crack krna h toh English sikho!!
@prabinlamsal74
@prabinlamsal74 2 месяца назад
But what is wrapper class? lol
@Alonkete
@Alonkete 2 месяца назад
Lund
@azmathkhan7619
@azmathkhan7619 Год назад
i am unsubscribe you because your making paid course
@sravanit2002
@sravanit2002 8 месяцев назад
Thank you it's very helpful
Далее
#61 Abstract Keyword in Java
12:09
Просмотров 149 тыс.
Раскрыла секрет дочки!
00:37
Просмотров 355 тыс.
#59 Upcasting and Downcasting in Java
6:37
Просмотров 100 тыс.
#58 Object Class equals toString hashcode in Java
12:00
Learn Any Programming Language In 3 Hours!
22:37
Просмотров 371 тыс.
Generics in Java
14:26
Просмотров 508 тыс.
#65 What is Interface in Java
8:03
Просмотров 201 тыс.
Раскрыла секрет дочки!
00:37
Просмотров 355 тыс.