OOP 6 | Generics, Custom ArrayList, Lambda Expressions, Exception Handling, Object Cloning

  Рет қаралды 181,613

Kunal Kushwaha

Kunal Kushwaha

Күн бұрын

This sixth video of the complete object oriented programming (#OOP) course in Java will clear some of the most important concepts for you such as:
- generics
- custom ArrayList
- comparing objects
- lambda expressions
- exception handling
- object cloning
Complete OOP playlist: • Object Oriented Progra...
Take part in the learning in public initiative! Share your learnings on LinkedIn and Twitter with #DSAwithKunal & don't forget to tag us!
👉 Resources
- Join Replit: join.replit.com/kunal-kushwaha
- Complete Java DSA playlist: • Java + DSA + Interview...
- Code, Assignments, & Notes: github.com/kunal-kushwaha/DSA...
➡️ Connect with me: kunalkushwaha.com
=========================================
Timestamps:
0:00:00 Introduction
0:01:48 Custom ArrayList
0:15:09 Problem with Custom ArrayList
0:17:17 Custom ArrayList using Generics
0:19:32 Working with Generics
0:30:35 Using Java Wildcards
0:33:55 Comparison Objects
0:48:14 Lambda Functions
0:56:45 Exception Handling
1:03:03 Exception Handling Keywords
1:09:44 Creating Custom Exception
1:12:32 Object Cloning
1:20:44 Shallow and Deep Copy
1:22:52 Explaination of Shallow Copying
1:25:32 Explaination of Deep Copying
1:30:44 Outro
#placement #dsa #interviews

Пікірлер: 237
@beasty007
@beasty007 2 жыл бұрын
"Makes sense", "Sounds good", "Okay", "Cool".
@eminence_Shadow
@eminence_Shadow Жыл бұрын
alrighty
@nisabmohd
@nisabmohd Жыл бұрын
Something like that, yup
@vanshjain5960
@vanshjain5960 Жыл бұрын
"all that stuff"
@amcreations9192
@amcreations9192 Жыл бұрын
"Or Whatever "
@TheTimelessReverie
@TheTimelessReverie Жыл бұрын
Hey everyone
@ankit_1012
@ankit_1012 2 жыл бұрын
For me Understanding oops is now easier than understanding how to use discord 😅
@KunalKushwaha
@KunalKushwaha 2 жыл бұрын
haha nice
@poorvagupta2399
@poorvagupta2399 2 жыл бұрын
That's so true
@ig_haxie
@ig_haxie Жыл бұрын
20:30 if you cant understand: Generics provide type checks at compile time, and the produced bytecode only knows classes, methods and interfaces. Bytecode is executed at runtime and objects are created at runtime as well, Looking at bytecode, it doesn't contain the "type" of object we want to create, so it shows error.
@aryanjoshi9703
@aryanjoshi9703 7 ай бұрын
ya, may be the object creation statement (where the T is also present ) it will executed at run time and compiler will not be able to get the type of object.
@74N
@74N 2 жыл бұрын
I Never Like To Share Kunal's Video. I Hate Competition 😅
@ramlanjekar2773
@ramlanjekar2773 10 ай бұрын
this video was of very less energy and many things were taken in granted(i am saying this by watching every single video ) so people who are reading this may opt for any other videos for the given topic
@ramlanjekar2773
@ramlanjekar2773 10 ай бұрын
you just made this video very disappointing like i liked you throughout the series but last mai hugg diya
@shubhamagarwal7876
@shubhamagarwal7876 2 жыл бұрын
Kunal there is so much in this 1.5 hr video that is equivalent to 1 week of paid classes for 1.5 hr each day . So the one person that can encapsulate a 15 hr topic efficiently in 1.5 hr is one and only our Kunal.
@sureeth1732
@sureeth1732 Жыл бұрын
So true 😎💯
@gouravpanseja7236
@gouravpanseja7236 2 ай бұрын
He literally rushed through so many things... didn't explain some.... didn't mentioned some.... and even left some for confusion..... have been following this sereis from the very beginning... but this one dissapointed me
@Rahulyadav-lv7dh
@Rahulyadav-lv7dh 2 жыл бұрын
Some people hate this channel because they cannot digest the fact that CP is not necessary to be a good software Engineer well,A sun shouldn't stop shining because its light are hurting people eyes. keep shining Kunal we are with you
@KunalKushwaha
@KunalKushwaha 2 жыл бұрын
Ignore maaro sab bache hain
@Rahulyadav-lv7dh
@Rahulyadav-lv7dh 2 жыл бұрын
Ok
@sahilpatle6436
@sahilpatle6436 Жыл бұрын
41:18 In simple words. If 2 data are same the method must return zero(0). If 1st data is greater than 2nd data the method must return +1. If 1st data is smaller than 2nd data the method must return -1.
@arijitmohapatra147
@arijitmohapatra147 2 жыл бұрын
Seriously there are many series on java but this particular series has some separate space in our ❤️
@karanbadhwar4113
@karanbadhwar4113 3 күн бұрын
How imp is Lambda function part ? As, I Couldn't understand lambda Function part.
@minisri21
@minisri21 Жыл бұрын
This course is the best, there were things I used to consider advance level may be I could not be able to understand but with your bootcamp nothing seems impossible.
@ridoychandradey8337
@ridoychandradey8337 Жыл бұрын
Learned so many things at once. Rare video on youtube. Once again thank you very much Kunal.
@meetsoni1938
@meetsoni1938 2 жыл бұрын
This video contains so many concepts but explained all it in the very easy way 👍👍🔥🔥
@neharamesh7732
@neharamesh7732 Жыл бұрын
Binged the OOPS playlist. 😁 Undoubtedly this was the best series. You keeping your word explaining every single line. Thanks for making our lives easier. Keep bringing such amazing series ! ♥
@eminence_Shadow
@eminence_Shadow Жыл бұрын
Liar
@eminence_Shadow
@eminence_Shadow Жыл бұрын
It would mean 11 hrs nonstop playing videos... doesn't make any sense..so liar
@vineetsingh4042
@vineetsingh4042 2 жыл бұрын
Thanks for this course bhaiya. puri KZbin main sirif apka course hai jisma recursion ko itna detail main explain kiya hai.
@KunalKushwaha
@KunalKushwaha 2 жыл бұрын
Thank You for sharing
@wasimshaikh5093
@wasimshaikh5093 2 жыл бұрын
Excellent teaching skills...its great learning from you!
@rambabupatidar3092
@rambabupatidar3092 Жыл бұрын
best videos for oops really appreciate the effort by you. keep posting the good content.
@bjugdbjk
@bjugdbjk 2 жыл бұрын
Oh man ..u made my sunday super productive !! I love to say this again nd again this Channel s the BEST and gonna see insane growth in super short span f time !!
@atulthakre5066
@atulthakre5066 Жыл бұрын
learned a lot from this DSA series . thanks kunal
@lohithkumar5292
@lohithkumar5292 2 жыл бұрын
Great content! Looking forward for future videos.
@geetankarkarmakar378
@geetankarkarmakar378 Жыл бұрын
Next Level Explanation. Thank you !!
@adityamishra7486
@adityamishra7486 Жыл бұрын
before watching every video i just like it coz i know every tutorial is a masterpiece:)
@jamespeterson7824
@jamespeterson7824 Жыл бұрын
OOP made easy with @kunal...good teaching and explanation 👍
@playeratpost
@playeratpost 2 жыл бұрын
Bro just noticed that sound is little bit low in videos coming now....previously it was good. Please look into it. Btw amazing lecture...got some concepts cleared!
@KunalKushwaha
@KunalKushwaha 2 жыл бұрын
I had cold
@playeratpost
@playeratpost 2 жыл бұрын
@@KunalKushwaha Ohh! Hope you are fine now😁….I thought it was some editing issue😅….btw thanks for reply!
@mohitashliya8750
@mohitashliya8750 Жыл бұрын
My love and gratitude for you Kunal thanks for this course
@pronitwilson7777
@pronitwilson7777 Жыл бұрын
that was a clean and clear video...loved to learn...thanks Kunal
@Helly_Patel
@Helly_Patel 2 жыл бұрын
Thanks for teaching us like no one did till now!! One small request, please make lectures on dynamic programming as well!!
@user-bm6ic5ls8x
@user-bm6ic5ls8x Жыл бұрын
Nhi bnayega
@Sillysmiles76
@Sillysmiles76 Жыл бұрын
Wonderful video. Learnt many things easily.
@yashisharma4583
@yashisharma4583 2 жыл бұрын
Thanks a lot for this wonderful course😃
@KunalKushwaha
@KunalKushwaha 2 жыл бұрын
Most welcome!
@anubhavgarg1728
@anubhavgarg1728 11 ай бұрын
I just wanna ask while doing the deep copy through the clone method what we did was first of all we created a shallow copy of it then we updated the non - primitive array by creating a new object of array and then assign it to the arr variable then again using the for loop we reassigned each element of the array at its correct position. But can't we just call the constructor method from inside the clone function? or maybe we can't do it as the constructor method doesn't have a return type. I just asked this because as we know that in the constructor we are creating the array each time. So we are allocating memory each time using the new keyword. I have one more alternative inside of the clone function why don't we just create another human object and initialize it with the constructor that takes human object as parameter. That way we can simply assign the reference of that object to that object through which we have called the clone function.
@codingwithadesh6935
@codingwithadesh6935 2 жыл бұрын
Best Java playlist ever❤️
@navinsingh7539
@navinsingh7539 Жыл бұрын
Fear of java funds gone!!Thanks to you man:).
@_hulk748
@_hulk748 Жыл бұрын
Great Explanation Sir❤🙇‍♂🙏✨
@yashkoolwal196
@yashkoolwal196 2 жыл бұрын
LIKE ALWAYS AMAZING VIDEO !!
@vishalsinghpanwar2972
@vishalsinghpanwar2972 Жыл бұрын
You missed adding notes for this video OOP 6, the rest were all added. Please add the notes for this as well (OOP 6 | Generics, Custom ArrayList, Lambda Expressions, Exception Handling, Object Cloning) !
@piyush9266
@piyush9266 2 жыл бұрын
Thank u so much bro for this☝️🙏
@KeshavKumar-cr9kx
@KeshavKumar-cr9kx 2 жыл бұрын
really nice video, keep creating, lots of love
@akshaykumar-wd8jc
@akshaykumar-wd8jc 2 жыл бұрын
This one bootcamp is enough to master java,oop and DSA
@usenmfonuko3271
@usenmfonuko3271 4 ай бұрын
Thank you so much Kunal
@kalpeshmali1476
@kalpeshmali1476 2 жыл бұрын
kunal bhai aap jo kar rahe ho sahi kar rahe ho dsa k tuts bht ache hai 🔥
@shafaq-here
@shafaq-here 2 жыл бұрын
Learnt a lot of new stuffs, oops series is Awesome. #LearnInPublic #DsawithKunal
@adeditz3607
@adeditz3607 Жыл бұрын
One Of The Best PlayList in Java Oops , ❤️😘
@adityagarhwal4
@adityagarhwal4 2 жыл бұрын
Very much helpful course
@supratimbhattacharjee5324
@supratimbhattacharjee5324 Жыл бұрын
Checked exception is not handled by compiler, all type of exceptions are handled in runtime, checked exception is just giving warning that this kind of exception may happen while runtime so the code will not compile and will give compilation error, so we need to write our exception handling code beforehand so that this kind of exception will not happen in runtime
@kiranrajb2960
@kiranrajb2960 5 ай бұрын
Bro can I ask who is Rahul Because u always use rahul object
@amthephoenix007
@amthephoenix007 Ай бұрын
Amazing lecture Kunal!! Had fun :)
@archanakharade273
@archanakharade273 6 ай бұрын
You are simply awesome!
@ashvinkumhar5819
@ashvinkumhar5819 Жыл бұрын
As Always a Best One!!!
@souvikghosh5768
@souvikghosh5768 Жыл бұрын
i don't understand the "Lamda" part and throws keyword use in actual work and that's I find problem in object cloning. i'll try to read orcle doc and gfg let's see
@nirvattaenterprises3047
@nirvattaenterprises3047 Жыл бұрын
Great Work!
@applein289
@applein289 Жыл бұрын
best course on youtube😍
@kanchangupta6007
@kanchangupta6007 Жыл бұрын
i loved watching your teaching, it is way too easy to understand. one of my friend is looking for python tutorial. i checked on the website but it is saying coming soon. when will it be available
@shantanusutar3617
@shantanusutar3617 2 жыл бұрын
Question : What happens when " EKLAVYA " becomes your " GURU" ??? Answer : " COMMUNITY CLASSROOM "
@KunalKushwaha
@KunalKushwaha 2 жыл бұрын
Demn, nice
@Rahulyadav-lv7dh
@Rahulyadav-lv7dh 2 жыл бұрын
Damn, that's a good one⚡
@mahekjariwala3560
@mahekjariwala3560 2 жыл бұрын
@Kunal Kushwaha, You are doing great job. Can you please recommend me youtuber who teach Frontend regarding things.
@aradhyapatro3796
@aradhyapatro3796 2 жыл бұрын
Was yet another amazing lecture I specifically liked the exception handling part cause I frankly was struggling with it bit recently.
@aradhyapatro3796
@aradhyapatro3796 2 жыл бұрын
Just wish my college professor were as good as you
@swayam2367
@swayam2367 2 жыл бұрын
Expec...espec...aceepti...exception😂😂😂
@didycrypto8484
@didycrypto8484 Жыл бұрын
very simple stuff , no problem , cool
@naveenkumarm1190
@naveenkumarm1190 8 ай бұрын
Love You Kunal!😍
@jayeshshaha49
@jayeshshaha49 6 ай бұрын
Awesome explanation
@ayushsharma31585
@ayushsharma31585 2 жыл бұрын
Kunal, I m working as a technical support now since 2 yrs and wants to becone data analyst. I am learning the skills on my own. Do I need to get any paid internship or anything else or just I need to learn and make projects nd highlight on resume??
@anshukumari6226
@anshukumari6226 2 ай бұрын
Nice Explaination!
@yashrajsingh5024
@yashrajsingh5024 2 ай бұрын
custom arraylist explanantion is very nice
@anjalithakur_12
@anjalithakur_12 Жыл бұрын
Great explanation
@dhamotharan1734
@dhamotharan1734 10 ай бұрын
Excellent!
@Saikiran213x
@Saikiran213x 2 жыл бұрын
Thanks a lot
@DREAM-dg8sh
@DREAM-dg8sh Жыл бұрын
kunal when are going to upload trees and graph videos. And thank you so much for teaching.
@BROOKnim
@BROOKnim 2 жыл бұрын
@ 1:09:30 we dont need to do "throws Exception" after psmv?
@vigyanta94
@vigyanta94 8 ай бұрын
Thanks Kunal
@AbhishekRana-fx7le
@AbhishekRana-fx7le 11 ай бұрын
Correction: In shallow copy as kunal said for non-primitive ones, reference variable points to original one only rather then making a new one but this not goes for string because since strings are immutable (we cannot change it)and hence it will create new string for the clone one
@inspiredbyinfinity
@inspiredbyinfinity 23 сағат бұрын
bro kunal is right! no new string will be created
@subhamsahu4082
@subhamsahu4082 4 ай бұрын
love his tutorial
@BackEndGenius
@BackEndGenius Жыл бұрын
amazing stuff.
@user-mt2wn6hf8x
@user-mt2wn6hf8x 10 ай бұрын
43:57 if its calling Arrays.tostring (list [of type student array]) means Arrays tostring method then why it needs its own class to string method
@chris-p-bacon1053
@chris-p-bacon1053 2 жыл бұрын
Vhaiya please make a roadmap for CS students semester/year wise. That would be a game changer coz most of this types of videos are made for keeping CP at the centre.
@KunalKushwaha
@KunalKushwaha 2 жыл бұрын
I will
@arshansari458
@arshansari458 2 жыл бұрын
@@KunalKushwaha please include sections for 2nd/3rd year specifics too ,like how to proceed if u are in these years and kind of in a slump
@sameermd5779
@sameermd5779 2 жыл бұрын
wonderful......
@adityaSharma-ib1il
@adityaSharma-ib1il Жыл бұрын
This is best course bro
@subhrajyotidas2569
@subhrajyotidas2569 8 ай бұрын
you are a stack of concepts
@yunik_developer
@yunik_developer 4 ай бұрын
50:32 lamda functions are just like Arrow functions in js
@sabithakrishnamoorthy3606
@sabithakrishnamoorthy3606 2 жыл бұрын
Can someone provide me the video link were casting topic discussed?
@thefizzshow
@thefizzshow Жыл бұрын
Great video
@sameerakhatoon9508
@sameerakhatoon9508 Жыл бұрын
ty sm!!
@mr.suryansh
@mr.suryansh 10 ай бұрын
best series
@user-mt2wn6hf8x
@user-mt2wn6hf8x 10 ай бұрын
51:00 arr.forEach((item)->System.out.println(item*2));// don't understand how its work please help
@adityaojha5776
@adityaojha5776 2 жыл бұрын
Who the hell disliked the video!!! These people are so messed UP!
@mitrraaswin4933
@mitrraaswin4933 2 жыл бұрын
Sources say that they are subscribers of Aman, Love babbar, Nishant chahar😂🤣🤣
@ayush_24
@ayush_24 2 ай бұрын
Most concepts in this video were not explained properly, the explanation lacked whys. And yeah I have been following the series from the beginning.
@skmemes-kl1bd
@skmemes-kl1bd 4 ай бұрын
Why you go with very speed on the particular topic generics remaining all the topic I love it but only this topic I can't understand atleast tell me this topic is important or not ?😢😮
@shantahiremath7313
@shantahiremath7313 Ай бұрын
Thank you sir
@integrate2945
@integrate2945 2 жыл бұрын
Can you please make a vedio on "pointers in c++ from begginers to advance all topic" . I'm struggling with this topic... And your explanation is soo awesome
@kiku_to_herself
@kiku_to_herself 2 жыл бұрын
Check mycodeschool playlist of pointers
@parthsharma5966
@parthsharma5966 2 жыл бұрын
bhaiya mae USAR mae IIOT branch lu ya phir BPIT ECE please guide krdo bada confuse hu
@davedition2077
@davedition2077 2 ай бұрын
preety cool stuff..
@jk-sm6qr
@jk-sm6qr 4 ай бұрын
Thank you
@kingb772
@kingb772 Жыл бұрын
nice work
@manwinsingh7381
@manwinsingh7381 8 ай бұрын
When will we get the dynamic programming videos?
@agp436
@agp436 2 жыл бұрын
After this Dsa🔥 course. What next plan?
@samiranroyy1700
@samiranroyy1700 9 ай бұрын
Sir pls continue dsa series ❤
@LoliceUwU
@LoliceUwU Жыл бұрын
tysm man!
@ArjunSharma-gp6hy
@ArjunSharma-gp6hy 2 жыл бұрын
Kunal Bhaiya Can I install JetBrains Rider in Windows 7?
@-AnveshSamrit
@-AnveshSamrit 11 ай бұрын
Appriciation Comment for your efforts
@jaganmohanreddy5747
@jaganmohanreddy5747 Жыл бұрын
Good one
@amanjain0842
@amanjain0842 Жыл бұрын
Done with this tutorial , reach++
@mahimatolani813
@mahimatolani813 Жыл бұрын
At 42:27 as you mentioned that guy is a topper still no matter what we don't know him and we know you hence proved marks doesn't matter but skills and personality definitely do.😃
@andrei6326
@andrei6326 6 ай бұрын
thanks
OOP 7 | Collections Framework, Vector Class, Enums in Java
26:40
Kunal Kushwaha
Рет қаралды 118 М.
OOP 1 | Introduction & Concepts - Classes, Objects, Constructors, Keywords
1:42:27
g-squad assembles (skibidi toilet 74)
00:46
DaFuq!?Boom!
Рет қаралды 8 МЛН
it takes two to tango 💃🏻🕺🏻
00:18
Zach King
Рет қаралды 28 МЛН
Pray For Palestine 😢🇵🇸|
00:23
Ak Ultra
Рет қаралды 27 МЛН
Cat story: from hate to love! 😻 #cat #cute #kitten
00:40
Stocat
Рет қаралды 13 МЛН
15 crazy new JS framework features you don’t know yet
6:11
Fireship
Рет қаралды 392 М.
OOP 4 | Access Control, In-built Packages, Object Class
50:45
Kunal Kushwaha
Рет қаралды 150 М.
Why I Moved Abroad for My Job
11:57
Kunal Kushwaha
Рет қаралды 49 М.
Separating AI Hype from AI Reality
19:49
IAmTimCorey
Рет қаралды 3,4 М.
Introduction to Heap Data Structure + Priority Queue + Heapsort Tutorial
1:11:07
OOP 3 | Principles - Inheritance, Polymorphism, Encapsulation, Abstraction
2:12:51
g-squad assembles (skibidi toilet 74)
00:46
DaFuq!?Boom!
Рет қаралды 8 МЛН