The Singleton Design Pattern In Java

Поделиться
HTML-код
  • Опубликовано: 17 янв 2025

Комментарии • 9

  • @willtollefson
    @willtollefson  Год назад +8

    What type of singletons do you use? Have you run into situations where an enum singleton wasn't good enough?

  • @DenaTollefson
    @DenaTollefson Год назад +6

    Fantastic tutorial on how to make safe, not easily broken singletons, Will! I like how you show us potential flaws when writing code, give us pracitical examples, and show us how to recognize issues then fix them. Great video!

    • @willtollefson
      @willtollefson  Год назад +4

      Thanks! There are mulitple singleton variants out there with different pros and cons for sure

  • @liongh8994
    @liongh8994 8 месяцев назад +1

    amazing, The explanation way, and the english accent is clearly and understandably.

  • @lequilong2725
    @lequilong2725 Год назад +2

    can you make a video about thread-local and virtual thread

    • @willtollefson
      @willtollefson  Год назад +1

      Sure! That's a good idea

    • @willtollefson
      @willtollefson  11 месяцев назад

      Here's a video about virtual threads in JDK 21 and it touches on ThreadLocal a bit near the end!
      ruclips.net/video/aXGrR8Q9_ak/видео.html

  • @kaka_tutorails8765
    @kaka_tutorails8765 4 месяца назад +1

    Excuses me sir. Can you make videos about JDK, JVM and JRE?

    • @willtollefson
      @willtollefson  4 месяца назад

      Sure! Anything specifically you’d like to see?