☕Want to master Java? Get my complete Java course: bit.ly/42mQlXE
@lindawisebear3 жыл бұрын
This is the best explanation of Generics I've seen on the internet. I loved how you started with the problem to solve, and then showed how generics is useful when tackling that problem :)
@999loaderu2 жыл бұрын
true dat. Fell the same
@gauravmishra87822 жыл бұрын
True
@KnakuanaRka3 жыл бұрын
Also, something else to add about generics: If you’re expecting some specific property of the class you put into a generic, you can write that into your generic. For example, if your class had an array of T’s that you wanted to sort, just putting MyClass will make your compiler complain that you’re doing something unsafe. This is because you can only use sort() on the array if the class T implements the Comparable interface and its compareTo() method, and there’s no guarantee someone won’t try to make it with some class Java doesn’t know how to compare or sort (like a custom one). The solution here? Write your class header as MyClass. This tells the compiler that you will only make MyClass’es with types that can be sorted. This uses “extends” as opposed to the “implements” usually used for interfaces because you’re just making a promise about the generic class, not actually implementing one, and the second T is because Comparable is also generic (so you need to say that T implements a method to compare T objects specifically).
@eustachybakielka3 жыл бұрын
It's not because of reification of arrays?
@KnakuanaRka3 жыл бұрын
@@eustachybakielka Not sure what you’re referring to.
@eustachybakielka3 жыл бұрын
@@KnakuanaRka "For example, if your class had an array of T’s that you wanted to sort, just putting MyClass will make your compiler complain that you’re doing something unsafe"
@KnakuanaRka3 жыл бұрын
@@eustachybakielka What the heck is reification of arrays?
@eustachybakielka3 жыл бұрын
@@KnakuanaRka What is reification in Java? In the context of Java as a programming language, reification is the process by which a user program or any aspect of a programming language that was implicit in the translated program and the run-time system, are expressed in the language itself. In Java, there exist "reifiable types" that are "completely available at run time" (i.e. their information is not erased during compilation). Example: //Allocates an array of type String, so it is reified String[] aStringArray = new String[10]; //Allocates a list with no type, Java does not reify generic types List aStringList = new ArrayList();
@philippebaillargeon52043 жыл бұрын
I like the way you explain things: Java developers created Generics to solve a problem, so I think its pretty logical to talk about the problem before talking about the concepts that were created to solve it. Great video !
@mastershonobi1102 жыл бұрын
Super great point(illustrate the problem to solve, before the concept). A lot of Java Channels should be taking notes!!
@angledcoathanger2 жыл бұрын
Totally agree - it's hard to get excited about a key if you haven't seen the lock that it opens
@abdullahmajed75543 жыл бұрын
that was really simple i love the way you edit the video making switch between you and the code it feels so clean, thank you
@mohannadfadhal42822 жыл бұрын
Thank you so much, Sir. You made the explanation for generics very simplified, especially, by the style of starting with the problem first and then showing the solution! 🤩
@deeptimonga73754 жыл бұрын
Keep On Making such videos on Keep On Coding channel. Really Helpful !!
@KeepOnCoding4 жыл бұрын
Thanks for watching Deepti!
@TS-wj4im3 жыл бұрын
Dude thank you. My text book way over complicated generics. Now it all makes sense.
@fredericoamigo Жыл бұрын
Thank you so much for this! I love your Java tutorials. So simple, clean and explanatory. Keep up the good work!
@JosephGallagher11 ай бұрын
This is the most concise and easy to understand video I've seen so far on Generics, thank you so much :D
@philyeo2 жыл бұрын
awesome stuff. I liked the way you explained it - showing the problem first and how generics can help save the day!
3 жыл бұрын
Wow! You explained it all so good. I finally feel like I understand this. Thank you so much. Please keep it coming.
@hannahc84362 жыл бұрын
This was such a great explanation of Generics. I've been so confused about it for the past few weeks. Thank you!!
@shreypatel93793 жыл бұрын
This was the best explanation on youtube, short and concise. Thank you and keep making such videos
@delmayank3 жыл бұрын
Lounge Coding! I really liked the theme. A new touch to coding tutorials. I am your fan now. You rock! Oh! And the stuff that you covered in this tutorial is of great value. You explained it easily and flawlessly.
@shagiwan2 жыл бұрын
Second year of studying Software Development in Uni and this is just the best explanation ive heard! Great job man!
@IgorBeneli10143 жыл бұрын
You're incredible you explained with 12min a concept that my professor couldn't do it with 1 hour. Keep doing this amazing job thank you so much!
@BoetFly4 жыл бұрын
Man, thank you so much, i finally understand those generics now :D
@prabhakarlal47993 жыл бұрын
Nice and simplified explanation of a complicated topic. Thank you.
@isah.29803 жыл бұрын
Thank you so much! Please, keep doing videos like this!
@conea68913 жыл бұрын
I like this fast paced explanation.
@ziekaman24502 жыл бұрын
Thankyou so much. You're very talented in explaining complicated Java thingys!
@himanshushukla7872 жыл бұрын
bro your java playlist is so underrated. I love it
@anx007d2 жыл бұрын
Thank You very much .. after looking many videos from different sources ....... this video absolutely cleared my thoughts for Java Generics.
@LIP45GUL4 жыл бұрын
Great video, thanks for explaining so well!
@CarlosRamirez-uz7hs3 жыл бұрын
Great video man, keep doing what you do
@PrakashVl3 жыл бұрын
This tutorial is helpful for filling the gaps in generics, thanks for explaining thoroughly.
@gauravkumarsingh6403 жыл бұрын
This is legit the best video I could find to understand Generics!
@RubenGarciaCS3 жыл бұрын
Excellent quality! Thank you
@19sunheart962 жыл бұрын
Nice video! Very easy to understand explanation of the concept.
@alexmedina51353 жыл бұрын
what a good, easy, and elegant way to explain generics ... keep it up!!
@abhijeetmokale90243 жыл бұрын
Seriously this way of learning from the problem is amazing! Thanks Sir!!
@leonrickert40614 жыл бұрын
Keep on man, cool teaching style
@89pravinb2 жыл бұрын
Thank you for creating this video! Very concise and informative
@monetoast3 жыл бұрын
Exceptional video, very clear!
@TKollaKid2 жыл бұрын
Great explanation - clear and helpful. Thank you.
@olegc62093 жыл бұрын
Awesome explanation, thanks for your help!
@2010aishwary3 жыл бұрын
very nice to the point video, subbed
@okikiomisande8732 Жыл бұрын
Awesome explaination, thank you!
@AshBeastreal2 жыл бұрын
Wow this is one of the best explainer videos. Loved watching it🤩
@ledtargaouschi58313 жыл бұрын
Your videos are very helpful and your teaching methods are very clear
@fahadtahir63 жыл бұрын
Very informative and loved your communication style
@lurkhidden91263 жыл бұрын
Learned hella! Good looks my guy
@anithachowdary97163 жыл бұрын
I understood the topic very well.Thank you so much Please share more videos
@Burak-cr6um2 жыл бұрын
Thank you, It was very helpful as usual.
@qwarlockz80173 жыл бұрын
Nice video. You do have a great way of explaining things.
@aavocadoToast3 жыл бұрын
Great video! Detailed and to the point.
@damyandimitrov6113 жыл бұрын
Very well explanation and approach
@999loaderu2 жыл бұрын
really well explained m8. Appreciate it. thx
@morolillyshean88162 жыл бұрын
Yes, this is the best one I found. Thanks!
@tetsuorulin90092 жыл бұрын
I love teaching to the problem. Great video and thanks!
@chinemelumj53492 жыл бұрын
Finally understood generics, thank you so much!.
@kylemanley9153 жыл бұрын
Sweet tutorial, just subscribed
@leslyp.blaise72383 жыл бұрын
Explanation clear and concise thank you
@faikyesilyaprak87613 жыл бұрын
That was lit bro!!!! Thanks for crystal clear explanation :))))
@premalupadhyay35553 жыл бұрын
Great and simple explanation, I like this way of teaching a lot.
@williamfernandesdorante60683 жыл бұрын
WOW' You're good at teaching code and concepts. Way to go!
@wovasteengova3 жыл бұрын
This looks like it's from java, a beginner's guide. I too was confused on what generics fix but thank you for explaining it in the beginning of the video. I think you should do that to all your videos
@earl0fBronze3 жыл бұрын
I read a thirty page chapter on this, one ear out the other. This video is outstanding, mind blown.
@ItsTheDannyShow4 жыл бұрын
Subscribing man. You helped so much.
@saintfrancisbeats96393 жыл бұрын
Dope! I am currently in an Intermediate Programming college course and they just want us to read a document. I was so lost. This clarified alot. Also it cause me to switch from Netbeans to IntelliJ IDEA hahaha
@lazpz617 Жыл бұрын
This video really helped me understand Generics way more than my instructors classes
@lancelotlin34593 жыл бұрын
Best tutorial! Thanks for your explanation!
@nikeshparajuli63454 жыл бұрын
it's really helpful,thanks a lot .
@timo_b33 жыл бұрын
Thank you, excellent explanation!
@abidali51313 жыл бұрын
Thank you, I learnt something new today
@kaifahsan84594 жыл бұрын
Thanks for the video mate. Pretty well explained. Would be awesome if you keep making videos about core and advanced OOP concepts like this.
@KeepOnCoding4 жыл бұрын
Thank you sir. Did you have a specific topic in mind?
@kaifahsan84594 жыл бұрын
Probably topics like interfaces, polymorphism, exceptions, collection frameworks etc. There's a huge Quora thread that might help you as well: www.quora.com/What-is-a-complete-list-of-topics-of-Core-Java-and-topics-of-Advanced-Java
@KeepOnCoding4 жыл бұрын
Awesome! Thanks!
@kalyanmatamarugu93963 жыл бұрын
Clean, simple and perfect content!
@gmailservice99452 жыл бұрын
very useful and well explained. thank you
@irenaslavova20413 жыл бұрын
Very helpful for me, thanks!
@sjakie04202 жыл бұрын
Thanks, very clear explanation
@thomi100 Жыл бұрын
Very well explained, thanks!
@tamimjabr16483 жыл бұрын
You are awesome bro, thank you for this video
@MrMarkjams4 жыл бұрын
This is a great video! Could you do one on Interfaces?
@dalvandi3 жыл бұрын
Possibly one of the best, clearest, and crispest explanations on the generic class that I've seen! Keep up the great content dude!
@ramiayash76583 жыл бұрын
i highly agree with you, the guy is so clear with his explanations
@technocoh Жыл бұрын
Amazing, simple explanation, thank you! =D
@tolstoievski49262 жыл бұрын
You can also declare generic type at method scope id you're planning to use static methods (methods that are not requiring you to instantiate class to use it)
@ravenmadd13433 жыл бұрын
Why can't everything be explained this clearly and quickly? Thanks for doing this and keep up the good work.
@bibahbibah51082 жыл бұрын
i like the u develop the subject, uake java very easy to work with
@SaljooqAltaf3 жыл бұрын
This just might be personal preference but the best and most detailed explanations for anyone studying comp sci are found in this channel - no idea why views haven't hit a million
@nisarullah77343 жыл бұрын
Great work keep it up
@beatakazmierczak25432 жыл бұрын
Simply explained! Thank you!
@101matthias3 жыл бұрын
I just watched 9 hours of online classes from my teacher on generics and I understood nothing. Less than nothing. 10 minutes of you and everything is clear it's super easy actually.
@technocoh Жыл бұрын
yeah not every professional or teacher is able to share his knowledge the proper way... ;)
@pinolskun8764 Жыл бұрын
@@technocoh yeah if someone need 9 hours to explain a concept you can safely assume they are the first who don't understand it
@himangshuchowdhary43692 жыл бұрын
Great explanation KOC!
@ritexcorp Жыл бұрын
That was a great explanation of Generics, keep up the good work, I just subscribed to your channel. Do you have something on Java annotations?
@fernandaribeiro22313 жыл бұрын
oh my God, thank you so much!!! you make this look easier
@chikken0073 жыл бұрын
Great explanation! Just gained a new Sub. Thank you and keep it up please!
@athardaif8633 жыл бұрын
I was struggeling with understanding generics until I watched your video. Thanks a lot :)
@MrDoctorSchultz3 жыл бұрын
Smooth, informative, and straight to the point. Keep up the good work!
@arnabmukherjee58404 жыл бұрын
Awesome tutorial bro
@porkfreegaming52782 жыл бұрын
You are awesome! thank you good sir
@xsendilien95514 жыл бұрын
Really awesome bro!
@cirodecarlineto24833 жыл бұрын
Thnks for the vid sam!!
@sultanrecords13623 жыл бұрын
Very Nice Explanation
@Officially_fit2 жыл бұрын
This guy is just amazing
@toniiicarbonelll2873 жыл бұрын
MAAAAAAAAAAAAAAAAAN that was just awesome thank you very much!
@netrob2 жыл бұрын
Well explained. Thanks!
@buddhikachathuranga29682 жыл бұрын
love the way you teach
@mimischly25473 жыл бұрын
thanks man great explanation
@anugrahps64634 жыл бұрын
I really kind of like the way you present bru keep onn