#60 Wrapper Class in Java

  Рет қаралды 159,532

Telusko

Telusko

Жыл бұрын

Check out our courses:
Spring and Microservices Weekend Live Batch : bit.ly/spring-live-weekend
Coupon: TELUSKO10 (10% Discount)
Master Java Spring Development : bit.ly/java-spring-cloud
Udemy Courses:
Java:- bit.ly/JavaUdemyTelusko
Spring:- bit.ly/SpringUdemyTelusko
Java For Programmers:- bit.ly/javaProgrammers
For More Queries WhatsApp or Call on : +919008963671
website : courses.telusko.com/
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/navinreddy20/Javac...
Instagram : / navinreddyofficial
Linkedin : / navinreddy20
Discord : / discord
Java:- bit.ly/JavaUdemyTelusko
Spring:- bit.ly/SpringUdemyTelusko
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

Пікірлер: 53
@Sedeerah
@Sedeerah Жыл бұрын
This is gold. Thank you!
@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 5 ай бұрын
so, how can you differentiate in one single line?
@zomssingh8744
@zomssingh8744 4 ай бұрын
​@@user-wz8vw4bl3ra class who wrap primitives into objects form Or Predefined class of java which contains primitive data type
@gowthamivallabhadasu2523
@gowthamivallabhadasu2523 4 ай бұрын
@@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.
@nikhilagrawal9217
@nikhilagrawal9217 7 ай бұрын
Thank you this is very helpful for the interview.
@SHASHANKRUSTAGII
@SHASHANKRUSTAGII Жыл бұрын
hello sir, i need to learn spring from scratch, then go to spring boot, what is the path?
@zr0724
@zr0724 Жыл бұрын
these are much better than the old ones , i love them , these are short and much fun to watch
@divyavats5303
@divyavats5303 3 ай бұрын
ofcourse
@anonymous.reddy0
@anonymous.reddy0 Жыл бұрын
thanks a lot don't stop making videos we are waiting
@bijenadhikari
@bijenadhikari Жыл бұрын
My one and only programming teacher in the world. Love from Nepal
@PipsMastery
@PipsMastery Ай бұрын
Sir how did you get that Integer file containing all the infomartion about it on vs code?
@yashuy3279
@yashuy3279 Жыл бұрын
Thank you, Sir.
@sravanit2002
@sravanit2002 6 ай бұрын
Thank you it's very helpful
@ahmadabadi_jainil
@ahmadabadi_jainil 9 ай бұрын
Thank you so much sir ❤❤
@ritwikdurga3855
@ritwikdurga3855 Жыл бұрын
Sir are these tutorials different from the ones previously(3yrs ago) tutorial playlist bcuz I am watching them
@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 5 ай бұрын
i got the joke
@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
@immortal_here
@immortal_here 4 ай бұрын
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
@basudevpaul8417
@basudevpaul8417 Жыл бұрын
ParseInt wala achha laga : ).
@unemployedcse3514
@unemployedcse3514 Ай бұрын
awesome ❤
@monishzeek5862
@monishzeek5862 Жыл бұрын
Pls upload javascript course like you upload for java
@user-ll5qj9tj5c
@user-ll5qj9tj5c 4 ай бұрын
when i taken as integer as string and printing directly without converting its working fine how
@christhelemaque4187
@christhelemaque4187 Жыл бұрын
I want spring boot update I can’t wait to see ya content
@rayananaresh3125
@rayananaresh3125 8 ай бұрын
Bro what platform are you using to write the code Pls tell and share with me
@salmanrizwan9076
@salmanrizwan9076 5 ай бұрын
Visual Studio Code is the IDE he's using
@randomperson-yj1xo
@randomperson-yj1xo 3 ай бұрын
Thank you, can you do a video with programming questions? so that children can have revision?
@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
@zulfiqar7967
@zulfiqar7967 Жыл бұрын
Any blockchain course??
@HumanCompound
@HumanCompound Жыл бұрын
Bro, mek fire hair! Just mek Yo Pyro fire Hair!
@tusharrawat859
@tusharrawat859 Жыл бұрын
Which ide is this
@gujjushanmukhasaipavankuma8983
@gujjushanmukhasaipavankuma8983 11 ай бұрын
Visual Studio code
@jaisuriya9552
@jaisuriya9552 10 ай бұрын
Integer b = (Integer) a ; what about it sir :>
@susobhandas18
@susobhandas18 6 ай бұрын
Sir, Why do we initialize object?
@SaiErukulla
@SaiErukulla 5 ай бұрын
To access the value by passing object reference variable in sout
@jagadeeshsadam9990
@jagadeeshsadam9990 Жыл бұрын
Sir please upload C# video also .
@Bdbdjdidnbwk
@Bdbdjdidnbwk 4 ай бұрын
and now, we can't use new Integer anymore :)
@xurdeor3247
@xurdeor3247 6 ай бұрын
similarly // Converting Integer to String Integer myInt = 456; String str = myInt.toString();
@MoeMoe-qr7od
@MoeMoe-qr7od 5 ай бұрын
I think , better use String.valueof();
@rameshblindlifestyle
@rameshblindlifestyle Жыл бұрын
💗 హాయ్ సార్ 🖤 కళ్ళతో చూడలేకపోయినా విని అర్థం చేసుకుంటూ ఉన్నాను కళ్ళు లేవు కదా కామెంట్ ఎలా పెట్టారు అనే డౌట్ ఎవరికైనా వస్తే Ramesh blind అనే టైటిల్ పైన ఉన్న వీడియోస్ చూడండి
@Mary__b46
@Mary__b46 6 күн бұрын
The Bitcoin transfer is a done deal-time to celebrate!
@iIrfanhussain
@iIrfanhussain Жыл бұрын
discord like doesnot work
@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
@subhanishaik7745
@subhanishaik7745 Жыл бұрын
durga sir having good teaching skills and less technical skills
@subhanishaik7745
@subhanishaik7745 Жыл бұрын
u have very good technical skills and less teaching skills.
@prabinlamsal74
@prabinlamsal74 Ай бұрын
But what is wrapper class? lol
@Alonkete
@Alonkete 28 күн бұрын
Lund
@laljibhaitalpada3950
@laljibhaitalpada3950 Жыл бұрын
India ko coding sikhana hai to hindi bolo.....🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳🇮🇳
@nomadvishal1306
@nomadvishal1306 Жыл бұрын
Interview crack krna h toh English sikho!!
@azmathkhan7619
@azmathkhan7619 Жыл бұрын
i am unsubscribe you because your making paid course
@AravStark
@AravStark 7 ай бұрын
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
@sravanit2002
@sravanit2002 6 ай бұрын
Thank you it's very helpful
#61 Abstract Keyword in Java
12:09
Telusko
Рет қаралды 131 М.
What is Wrapper Class In Java - Explanation with Examples
28:47
Mukesh otwani
Рет қаралды 41 М.
Happy 4th of July 😂
00:12
Alyssa's Ways
Рет қаралды 65 МЛН
Now THIS is entertainment! 🤣
00:59
America's Got Talent
Рет қаралды 38 МЛН
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
МЯТНАЯ ФАНТА
Рет қаралды 9 МЛН
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 1,6 МЛН
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 792 М.
#95 Comparator vs Comparable in Java
15:43
Telusko
Рет қаралды 158 М.
Java wrapper classes 🎁
7:13
Bro Code
Рет қаралды 106 М.
PhD AI student explains how China already have won in AI..
13:28
livinlavidaluke
Рет қаралды 60 М.
#59 Upcasting and Downcasting in Java
6:37
Telusko
Рет қаралды 88 М.
#26 Stack And Heap in Java
12:37
Telusko
Рет қаралды 213 М.
#53 Packages in Java
12:20
Telusko
Рет қаралды 166 М.
Generics In Java - Full Simple Tutorial
17:34
Coding with John
Рет қаралды 1 МЛН
Java Strings are Immutable - Here's What That Actually Means
7:06
Coding with John
Рет қаралды 608 М.
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 15 МЛН
САМЫЙ ДОРОГОЙ ЧЕХОЛ! В стиле Mac Pro
0:35
Romancev768
Рет қаралды 187 М.
Телефон-електрошокер
0:43
RICARDO 2.0
Рет қаралды 1,3 МЛН
EXEED VX 2024: Не өзгерді?
9:06
Oljas Oqas
Рет қаралды 48 М.