Learn Java Tutorial for Beginners, Part 32: Anonymous Classes

///Learn Java Tutorial for Beginners, Part 32: Anonymous Classes

Learn Java Tutorial for Beginners, Part 32: Anonymous Classes

FavoriteLoadingAdd to favorites

More courses! Free C++ course:
Make a social network with Spring Boot:
Learn about MySQL and relational databases:
Java desktop programming:
Intermediate-Advanced C++ 11:
——————————————————————————————————————————————-
This tutorial’s about anonymous classes; a quick and easy way to extend a class or implement an interface in Java.
——————————————————————————————————————————————–
More videos on my YouTube channel:

source

Java468x60
By |2020-01-11T01:07:44+00:00January 11th, 2020|Java Video Tutorials|45 Comments

45 Comments

  1. Jo Habib January 11, 2020 at 1:07 am - Reply

    lovely Tutorial. Thank you. <3

  2. Milen Patel January 11, 2020 at 1:07 am - Reply

    Insanely well explained! Thank you so much; this has probably been the hardest concept to grasp this far

  3. jvsnyc January 11, 2020 at 1:07 am - Reply

    I forgot I'd watched this one video, it must have been where I saved this playlist, expecting to come back to it if I actually started using Java as my main language at some point. Very cool. Most of the first 31 were review for me, altho I'd been writing so much C# that C# was coming out of my fingertips when I meant to write Java lately. This one is cool and something that casual Java users could easily forget/get confused when they see or need to use. Great video.

  4. FavStaR69 January 11, 2020 at 1:07 am - Reply

    Can new methods be added to the anonymous class? Or only overridden methods from the extended class or implemented interface?

  5. Ivan Stepantsov January 11, 2020 at 1:07 am - Reply

    perfect explanation!

  6. Gautam Kumar January 11, 2020 at 1:07 am - Reply

    Many thanks for great effort, please upload successors tututorial as well. Loved it ☺️

  7. Tomee K. January 11, 2020 at 1:07 am - Reply

    If I had a child, I'd give it a name "Machine". 😀

  8. Angelina January 11, 2020 at 1:07 am - Reply

    HERO!

  9. Jimmy Nguyen January 11, 2020 at 1:07 am - Reply

    Very cool! Great for quickly writing something up to test an idea.

    Love how clear and concise your explanation is.

  10. Mateusz Pawliński January 11, 2020 at 1:07 am - Reply

    great video! You've explained it in the best possible way for begginers!

  11. Baji Ravella January 11, 2020 at 1:07 am - Reply

    Very Helpful …..

  12. Green Wooded Outdoors January 11, 2020 at 1:07 am - Reply

    Im a software engineer and to be honest, have dealt with an onslaught of having to learn more than a few languages. Sometimes I get rusty and I love going back to your videos to get a great refresher on things that are clear but need to be crystal. Great explainations!

  13. Anshuman Rohella January 11, 2020 at 1:07 am - Reply

    This is pretty important for Android Development where you have to make your own event listeners .

  14. Levi Matheri January 11, 2020 at 1:07 am - Reply

    I like the Beethoven 4th piano concerto in the background

  15. Binu Nair January 11, 2020 at 1:07 am - Reply

    excellent sir Thanx!!

  16. Ankita Sinha January 11, 2020 at 1:07 am - Reply

    can we use super with anonymous classes?If yes, then how?

  17. NSR Slh January 11, 2020 at 1:07 am - Reply

    Thanks 😉

  18. undercurrent January 11, 2020 at 1:07 am - Reply

    lol it's like a bastard child, it doesn't have a name. It's a jon snow class, that's how i'll think of it.

  19. Christopher Angulo January 11, 2020 at 1:07 am - Reply

    Elegant

  20. Muath Alshehri January 11, 2020 at 1:07 am - Reply

    Thank you sir.
    Usually, I don't leave comments. But this great tutorial made me do it.

  21. E J January 11, 2020 at 1:07 am - Reply

    Im going to listen to your soothing voice to help me fall asleep

  22. Arun Singh January 11, 2020 at 1:07 am - Reply

    In the beginning I thought lord jesus is speaking.

  23. Marinakulichok January 11, 2020 at 1:07 am - Reply

    I feel like I am on the symphony at 9 am)) Relaxing music)

  24. Aq January 11, 2020 at 1:07 am - Reply

    Perfect Tutorial!!! Great Job!!!

  25. Guram Kankava January 11, 2020 at 1:07 am - Reply

    Thank you very much.

  26. Sj BlackHawk January 11, 2020 at 1:07 am - Reply

    thanks

  27. Jason Chong January 11, 2020 at 1:07 am - Reply

    Love your tutorials, all the best man

  28. naushad warsi January 11, 2020 at 1:07 am - Reply

    thank-you

  29. Stephanie L January 11, 2020 at 1:07 am - Reply

    Been working on event listeners/handlers in Android and all the stuff about working with anonymous classes confused me until I watched this. Thanks!

  30. Heat4Life January 11, 2020 at 1:07 am - Reply

    package main;

    public class John {

    public static void main(String[] args) {

    System.out.println("Thanks! This Tutorials are epic!");

    }

    }

  31. Alphonso Tompkins January 11, 2020 at 1:07 am - Reply

    Thanks for this John (as ever). May I make a suggestion (I've thought it for the last few videos in this course on more difficult topics, but have been prompted by your closing remark about GUI programming); I appreciate it's too late for this course. You explain things really clearly, but beginners may struggle to understand why it's necessary to have these techniques. A good example is lambda expressions (in Java 8): explaining them might make sense but the beginner may struggle with why are they necessary / where to use them / what problem they solve. It may help understanding to add some brief observations about how the technique might be deployed in the real world / why it exists. Thanks again.

  32. Emmanuel Kaku January 11, 2020 at 1:07 am - Reply

    please what is the reason behind the machine.start(); not displaying?

  33. Carter Rothswild January 11, 2020 at 1:07 am - Reply

    dude you explained this more clearly than anyone else I've seen. great video thanks

  34. Oliver Joshua Jacob January 11, 2020 at 1:07 am - Reply

    Man you are a legend.

  35. Thomas Gheorghe January 11, 2020 at 1:07 am - Reply

    Perfect explanation. Thanks!

  36. Wojciech Szczotka January 11, 2020 at 1:07 am - Reply

    thanks for effort. Good job.

  37. ollemonster January 11, 2020 at 1:07 am - Reply

    Interesting topic, I had never heard of this before. It feels a little bit like the readability gets a bit worse when using anonymous classes…

  38. TimpisHouse January 11, 2020 at 1:07 am - Reply

    Anonymous classes seems a bit confusing to learn, it almost feels like I'm creating a class and implementing an interface but I'm doing it backwards with the class name unknown. Do you think I can move on with the tutorials before understanding this to a fully 100% and that I eventually will get this, or should I try to search around a little on the web for further information about anonymous classes?

  39. xXxBladeStormxXx January 11, 2020 at 1:07 am - Reply

    Is this like the OOP version of Lambda's?

  40. Azharul Islam January 11, 2020 at 1:07 am - Reply

    Excellent…………!

  41. jvsnyc January 11, 2020 at 1:07 am - Reply

    This is one of those topics that separates the C/C++ programmers who know a bit of Java, or dabblers, from people who really know how to use Java.  It still looks weird and tripped out to me as a mostly C/C++ programmer but I'll watch this video until it seems like the most natural thing in the world, because as you point out, you want to focus on what the programmer is trying to accomplish in places where they use anonymous classes, not put off by and looking funny at this construct.

  42. Michael Dmitriev January 11, 2020 at 1:07 am - Reply

    thank you!

  43. Mohamed Sabri Ben Chaabane January 11, 2020 at 1:07 am - Reply

    exquisite!!

  44. Junky Baller January 11, 2020 at 1:07 am - Reply

    Clear and articulate! Was that you playing the Beethoven concerto?

  45. Looool January 11, 2020 at 1:07 am - Reply

    thanks youuuuuu from Morocco <3 <3

Leave A Comment

*