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

  Рет қаралды 177,043

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

Пікірлер: 234
@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.
@arijitmohapatra147
@arijitmohapatra147 2 жыл бұрын
Seriously there are many series on java but this particular series has some separate space in our ❤️
@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.
@74N
@74N 2 жыл бұрын
I Never Like To Share Kunal's Video. I Hate Competition 😅
@ridoychandradey8337
@ridoychandradey8337 Жыл бұрын
Learned so many things at once. Rare video on youtube. Once again thank you very much Kunal.
@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
@meetsoni1938
@meetsoni1938 2 жыл бұрын
This video contains so many concepts but explained all it in the very easy way 👍👍🔥🔥
@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 Ай бұрын
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
@wasimshaikh5093
@wasimshaikh5093 2 жыл бұрын
Excellent teaching skills...its great learning from you!
@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 !!
@rambabupatidar3092
@rambabupatidar3092 Жыл бұрын
best videos for oops really appreciate the effort by you. keep posting the good content.
@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.
@lohithkumar5292
@lohithkumar5292 2 жыл бұрын
Great content! Looking forward for future videos.
@atulthakre5066
@atulthakre5066 Жыл бұрын
learned a lot from this DSA series . thanks kunal
@kalpeshmali1476
@kalpeshmali1476 2 жыл бұрын
kunal bhai aap jo kar rahe ho sahi kar rahe ho dsa k tuts bht ache hai 🔥
@geetankarkarmakar378
@geetankarkarmakar378 Жыл бұрын
Next Level Explanation. Thank you !!
@codingwithadesh6935
@codingwithadesh6935 2 жыл бұрын
Best Java playlist ever❤️
@adityamishra7486
@adityamishra7486 Жыл бұрын
before watching every video i just like it coz i know every tutorial is a masterpiece:)
@pronitwilson7777
@pronitwilson7777 Жыл бұрын
that was a clean and clear video...loved to learn...thanks Kunal
@Sillysmiles76
@Sillysmiles76 Жыл бұрын
Wonderful video. Learnt many things easily.
@yashkoolwal196
@yashkoolwal196 2 жыл бұрын
LIKE ALWAYS AMAZING VIDEO !!
@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
@akshaykumar-wd8jc
@akshaykumar-wd8jc 2 жыл бұрын
This one bootcamp is enough to master java,oop and DSA
@AbhishekRana-fx7le
@AbhishekRana-fx7le 10 ай бұрын
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
@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
@navinsingh7539
@navinsingh7539 Жыл бұрын
Fear of java funds gone!!Thanks to you man:).
@mohitashliya8750
@mohitashliya8750 Жыл бұрын
My love and gratitude for you Kunal thanks for this course
@piyush9266
@piyush9266 2 жыл бұрын
Thank u so much bro for this☝️🙏
@jamespeterson7824
@jamespeterson7824 Жыл бұрын
OOP made easy with @kunal...good teaching and explanation 👍
@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
@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
@KeshavKumar-cr9kx
@KeshavKumar-cr9kx 2 жыл бұрын
really nice video, keep creating, lots of love
@adityagarhwal4
@adityagarhwal4 2 жыл бұрын
Very much helpful course
@mahekjariwala3560
@mahekjariwala3560 2 жыл бұрын
@Kunal Kushwaha, You are doing great job. Can you please recommend me youtuber who teach Frontend regarding things.
@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.
@applein289
@applein289 Жыл бұрын
best course on youtube😍
@shafaq-here
@shafaq-here 2 жыл бұрын
Learnt a lot of new stuffs, oops series is Awesome. #LearnInPublic #DsawithKunal
@usenmfonuko3271
@usenmfonuko3271 3 ай бұрын
Thank you so much Kunal
@adeditz3607
@adeditz3607 Жыл бұрын
One Of The Best PlayList in Java Oops , ❤️😘
@ashvinkumhar5819
@ashvinkumhar5819 Жыл бұрын
As Always a Best One!!!
@manwinsingh7381
@manwinsingh7381 8 ай бұрын
When will we get the dynamic programming videos?
@nirvattaenterprises3047
@nirvattaenterprises3047 Жыл бұрын
Great Work!
@amthephoenix007
@amthephoenix007 Ай бұрын
Amazing lecture Kunal!! Had fun :)
@archanakharade273
@archanakharade273 6 ай бұрын
You are simply awesome!
@user-mt2wn6hf8x
@user-mt2wn6hf8x 9 ай бұрын
51:00 arr.forEach((item)->System.out.println(item*2));// don't understand how its work please help
@_hulk748
@_hulk748 Жыл бұрын
Great Explanation Sir❤🙇‍♂🙏✨
@yunik_developer
@yunik_developer 3 ай бұрын
50:32 lamda functions are just like Arrow functions in js
@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
@DREAM-dg8sh
@DREAM-dg8sh Жыл бұрын
kunal when are going to upload trees and graph videos. And thank you so much for teaching.
@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!
@anjalithakur_12
@anjalithakur_12 Жыл бұрын
Great explanation
@Shorts_Hub2
@Shorts_Hub2 2 жыл бұрын
Thanks a lot
@adityaSharma-ib1il
@adityaSharma-ib1il Жыл бұрын
This is best course bro
@user-mt2wn6hf8x
@user-mt2wn6hf8x 9 ай бұрын
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
@jayeshshaha49
@jayeshshaha49 6 ай бұрын
Awesome explanation
@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😂😂😂
@anshukumari6226
@anshukumari6226 Ай бұрын
Nice Explaination!
@BackEndGenius
@BackEndGenius Жыл бұрын
amazing stuff.
@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??
@didycrypto8484
@didycrypto8484 Жыл бұрын
very simple stuff , no problem , cool
@BROOKnim
@BROOKnim 2 жыл бұрын
@ 1:09:30 we dont need to do "throws Exception" after psmv?
@sameermd5779
@sameermd5779 2 жыл бұрын
wonderful......
@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
@naveenkumarm1190
@naveenkumarm1190 8 ай бұрын
Love You Kunal!😍
@agp436
@agp436 2 жыл бұрын
After this Dsa🔥 course. What next plan?
@thefizzshow
@thefizzshow Жыл бұрын
Great video
@LoliceUwU
@LoliceUwU Жыл бұрын
tysm man!
@subhamsahu4082
@subhamsahu4082 3 ай бұрын
love his tutorial
@vigyanta94
@vigyanta94 7 ай бұрын
Thanks Kunal
@sabithakrishnamoorthy3606
@sabithakrishnamoorthy3606 2 жыл бұрын
Can someone provide me the video link were casting topic discussed?
@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
@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
@kingb772
@kingb772 Жыл бұрын
nice work
@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) !
@parthsharma5966
@parthsharma5966 2 жыл бұрын
bhaiya mae USAR mae IIOT branch lu ya phir BPIT ECE please guide krdo bada confuse hu
@dhamotharan1734
@dhamotharan1734 9 ай бұрын
Excellent!
@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.😃
@sameerakhatoon9508
@sameerakhatoon9508 Жыл бұрын
ty sm!!
@subhrajyotidas2569
@subhrajyotidas2569 7 ай бұрын
you are a stack of concepts
@-AnveshSamrit
@-AnveshSamrit 11 ай бұрын
Appriciation Comment for your efforts
@mr.suryansh
@mr.suryansh 10 ай бұрын
best series
@jaganmohanreddy5747
@jaganmohanreddy5747 Жыл бұрын
Good one
@shantahiremath7313
@shantahiremath7313 Ай бұрын
Thank you sir
@rudram4534
@rudram4534 2 жыл бұрын
still watching consistently 😀😀😀
@samiranroyy1700
@samiranroyy1700 8 ай бұрын
Sir pls continue dsa series ❤
@jk-sm6qr
@jk-sm6qr 4 ай бұрын
Thank you
@ArjunSharma-gp6hy
@ArjunSharma-gp6hy 2 жыл бұрын
Kunal Bhaiya Can I install JetBrains Rider in Windows 7?
@kiranrajb2960
@kiranrajb2960 5 ай бұрын
Bro can I ask who is Rahul Because u always use rahul object
@yashrajsingh5024
@yashrajsingh5024 Ай бұрын
custom arraylist explanantion is very nice
@davedition2077
@davedition2077 Ай бұрын
preety cool stuff..
@eminence_Shadow
@eminence_Shadow Жыл бұрын
46:00 can someone tell me why it's (Arrays.sort) calling inCompareTo function??
@nishasudhee8253
@nishasudhee8253 Ай бұрын
Because the student[] has roll no and marks, so by specifying the arrays to sort based on the diff of marks using compareto method of Comparable interface, the Arrays will now sort without confusion. Hope this helps.
@girishnakate5014
@girishnakate5014 2 жыл бұрын
Please upload dsa python course after dsa java course.
@skmemes-kl1bd
@skmemes-kl1bd 2 ай бұрын
No problem❤
@andrei6326
@andrei6326 5 ай бұрын
thanks
@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
@yashisharma4583
@yashisharma4583 2 жыл бұрын
Thanks a lot for this wonderful course😃
@KunalKushwaha
@KunalKushwaha 2 жыл бұрын
Most welcome!
@venutalla5932
@venutalla5932 Жыл бұрын
Tq sir
OOP 7 | Collections Framework, Vector Class, Enums in Java
26:40
Kunal Kushwaha
Рет қаралды 115 М.
OOP 5 | Abstract Classes, Interfaces, Annotations
1:10:42
Kunal Kushwaha
Рет қаралды 189 М.
didn't want to let me in #tiktok
00:20
Анастасия Тарасова
Рет қаралды 9 МЛН
одни дома // EVA mash @TweetvilleCartoon
01:00
EVA mash
Рет қаралды 6 МЛН
Surprise Gifts #couplegoals
00:21
Jay & Sharon
Рет қаралды 30 МЛН
Не пей газировку у мамы в машине
00:28
Даша Боровик
Рет қаралды 4 МЛН
OOP 3 | Principles - Inheritance, Polymorphism, Encapsulation, Abstraction
2:12:51
OpenAI’s GPT-4o: The Best AI Is Now Free!
9:14
Two Minute Papers
Рет қаралды 155 М.
First Java Program - Input/Output, Debugging and Datatypes
1:32:23
Kunal Kushwaha
Рет қаралды 1 МЛН
Introduction to Recursion - Learn In The Best Way
1:55:49
Kunal Kushwaha
Рет қаралды 802 М.
OOP 1 | Introduction & Concepts - Classes, Objects, Constructors, Keywords
1:42:27
Introduction to Programming - Types of Languages, Memory Management
39:02
Recursion - Array Questions (Theory + Code + Tips)
1:18:48
Kunal Kushwaha
Рет қаралды 260 М.
ChatGPT’s Amazing New Model Feels Human (and it's Free)
25:02
Matt Wolfe
Рет қаралды 139 М.
didn't want to let me in #tiktok
00:20
Анастасия Тарасова
Рет қаралды 9 МЛН