What is Singleton Pattern in Java - How to achieve this?

Поділитися
Вставка
  • Опубліковано 21 лип 2024
  • In this video, I have explained What is Singleton Pattern in Java - How to achieve this?
    The Singleton pattern in Java is a design pattern that restricts the instantiation of a class to one "single" instance. This is useful when exactly one object is needed to coordinate actions across the system. The Singleton pattern ensures that a class has only one instance and provides a global point of access to that instance.
    Schedule a meeting in case of any queries/guidance/counselling:
    calendly.com/naveenautomation...
    ~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
    ua-cam.com/users/Naveen%20Au...
    Follow me on my Facebook Page:
    / naveenqtpexpert
    Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
    t.me/joinchat/9FrG-KzGlvxjNmQ1
    Naveen AutomationLabs Paid Courses:
    GIT Hub Course:
    naveenautomationlabs.com/gitc...
    Java & Selenium:
    naveenautomationlabs.com/sele...
    Java & API +POSTMAN + RestAssured + HttpClient:
    naveenautomationlabs.com/manu...
  • Наука та технологія

КОМЕНТАРІ • 19

  • @bihari1422
    @bihari1422 18 днів тому +5

    Please continue this series with all the design patterns in Java.

  • @ranjanjyoti273
    @ranjanjyoti273 18 днів тому

    Excited for this series with all the design patterns for Automation testing .Getting lots of interview questions regarding design pattern .Thanks Naveen for doing this for community .

  • @abdulRahman-id3ru
    @abdulRahman-id3ru 17 днів тому

    Thank you for creating this video !

  • @SmrutiParekh
    @SmrutiParekh 18 днів тому +1

    Thank for sharing 😇😇😇

  • @yashsaxena7139
    @yashsaxena7139 18 днів тому

    Thanks Naveen if we go for eager initialisation instead of lazy ie creating instance before access. We will not require synchronised block correct me if wrong

  • @xoda345
    @xoda345 20 годин тому

    Naveen, why do we need two null check for the browser? Why isn't one null check enough?

  • @prateekgupta8914
    @prateekgupta8914 13 днів тому

    Thanks Naveen for this video. Could you please create same for Playwright with Java?

  • @anbu8006
    @anbu8006 17 днів тому

    Thanks

  • @niloychakravorty3832
    @niloychakravorty3832 17 днів тому

    Hi Naveen, can you make a video on Collectors.grouping by questions ?

  • @mahalasakini5045
    @mahalasakini5045 18 днів тому

    Naveen can you please explain SOLID principles also

  • @ambika1524-s9k
    @ambika1524-s9k 18 днів тому

    Sir i tried to connect with you on LinkedIn and WhatsApp which you provided on your website regarding mock interview i really want to take mock interview please reply if it's possible for you to schedule mock or not sir

  • @bihari1422
    @bihari1422 18 днів тому +4

    Honestly speaking if you would have made the video before about it I would have crack EPAM for remote location.... : (

    • @naveenautomationlabs
      @naveenautomationlabs  18 днів тому +4

      No worries, more opportunities will be there for you in future. Keep learning.

    • @_abhimanyu.
      @_abhimanyu. 17 днів тому

      I too had an interview with EPAM yesterday. Did you get any feedback from the HR team yet?

    • @bihari1422
      @bihari1422 17 днів тому

      @@_abhimanyu. yeah profile on hold and candidate lags in JAVA design patterns

    • @_abhimanyu.
      @_abhimanyu. 17 днів тому

      @@bihari1422 Did you get an email about it or did the HR call you?

    • @bihari1422
      @bihari1422 17 днів тому

      @@_abhimanyu. Email bro

  • @neha7980
    @neha7980 18 днів тому

    Why do we need to create object only single time ? whats the real time use case at framework level?

    • @MrAshu58
      @MrAshu58 День тому

      @@neha7980 logging is 1 use case when we want different module of an application to write to a single log file.