Spring Interview Questions and Answers for 5+ years of Experienced professionals | Code Decode

Поделиться
HTML-код
  • Опубликовано: 27 июл 2024
  • In this video of code decode most asked interview questions for spring for 5+ years of experience. We have covered mostly asked interview questions in 2023
    Udemy Course of Code Decode on Microservice k8s AWS CICD link:
    openinapp.co/udemycourse
    Course Description Video :
    yt.openinapp.co/dmjvd
    Explain the Dependency Injection (DI) and Inversion of Control (IoC) concepts in Spring.
    Dependency Injection (DI) and Inversion of Control (IoC) are two fundamental concepts in Spring that work together to achieve loose coupling and enhance the modularity and maintainability of an application.
    Inversion of Control (IoC):
    Inversion of Control is a design principle where the control of object creation and management is shifted from the application itself to an external container or framework. In traditional programming, a class is responsible for creating and managing its dependencies (other objects it relies on). In contrast, with IoC, the responsibility for creating and managing objects is delegated to a container or framework.
    In the context of Spring, the Spring IoC container is responsible for managing the creation and wiring of objects (beans) in the application. The container manages the lifecycle of these beans and handles their dependencies, ensuring that the right dependencies are injected into the right places. By doing so, the application code becomes more focused on its core logic, and the overall architecture becomes more flexible and maintainable
    Dependency Injection (DI):
    Dependency Injection is a specific implementation of the IoC principle. It is a technique used to inject the dependencies (i.e., collaborating objects or services) of a class into the class itself, rather than the class creating its dependencies. In other words, the dependencies are "injected" from the outside, typically by the IoC container.
    What are some common design patterns used in Spring applications?
    Singleton Pattern:
    The Singleton pattern is one of the most fundamental design patterns in Spring. By default, Spring beans are singletons, meaning there is only one instance of a particular bean per Spring container. This ensures that beans are shared across the application, reducing resource usage and promoting efficient object management.
    In Spring, beans can be configured as prototypes (new instance per request) or singletons, depending on the scope defined in the configuration.
    Factory Pattern:
    The Factory pattern is used in Spring to create and manage beans. The Spring IoC container acts as a factory that creates and manages bean instances based on their configurations in XML or Java-based configuration classes. It abstracts the process of object creation and allows for more flexible, configurable object instantiation.
    Spring's FactoryBean interface and the FactoryMethod approach allow for custom factory implementations to create beans programmatically.
    Dependency Injection (DI) Pattern:
    Dependency Injection is a core design pattern in Spring, facilitating loose coupling between classes. It involves providing the dependencies of a class from the outside rather than the class creating them internally.
    Spring's IoC container performs DI by injecting dependencies into classes either through constructor injection, setter injection, or method injection using annotations or XML configuration.
    Most Asked Core Java Interview Questions and Answers: • Core Java frequently a...
    Advance Java Interview Questions and Answers: • Advance Java Interview...
    Java 8 Interview Questions and Answers: • Java 8 Interview Quest...
    Hibernate Interview Questions and Answers:
    • Hibernate Interview Qu...
    Spring Boot Interview Questions and Answers:
    • Advance Java Interview...
    Angular Playlist: • Angular Course Introdu...
    SQL Playlist: • SQL Interview Question...
    GIT: • GIT
    Subscriber and Follow Code Decode
    Subscriber Code Decode: ruclips.net/user/CodeDecode?...
    LinkedIn : / codedecodeyoutube
    Instagram: / codedecode25
    #spring #springinterviewquestion #codedecode

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

  • @user-sapdev
    @user-sapdev 11 месяцев назад +19

    I'm glad to to share my success with Code Decode for your great efforts in bringing the right content for Interviews Preparation and revision.After more than 2 years of career gap . After 3-4 months of Continuous Practice and Revision , I was able to grab multiple opportunities in just 3 weeks of duration. My Last CTC is around 6LPA But in this tough times also i was able to get more than 150% hike in one Product based Level 3 Company and also in one of the top 5 Indian MNC with all your due support and guidance in the name of Code Decode Channel. I really don't have enough words to express my gratitude towards all the good work you have been made in this channel- which helped me a lot during my interviews and during my practice for interviews. Thanks Once again.👏👏🙏🙏

    • @CodeDecode
      @CodeDecode  11 месяцев назад +4

      Many many congratulations👏👏👏 well done 👍👍 so glad to hear this . All our hard work pays off seeing such beautiful comments. So glad to see you successful. ❤️❤️

    • @user-sapdev
      @user-sapdev 10 месяцев назад

      ​@@CodeDecodethanks once again madam and for all the code decode team for presenting most needed content in a simple and clear way.🎉

    • @Rahul-ed3no
      @Rahul-ed3no 10 месяцев назад

      @user-sapdev please send ur linkdin profile details

    • @gangadhararaonk
      @gangadhararaonk 3 месяца назад

      14:55 15:03 😢😢😢🎉🎉

  • @jayjoshi1366
    @jayjoshi1366 6 месяцев назад +3

    Great video content on Spring framework. Please make more videos on all Spring Annotations (in detail), Spring Bean Life cycle, Bean Scopes, Spring Profiles, Spring with ORM, with Hibernate, with JPA.
    Also make some informative and quick fire Spring Boot videos such as - Spring Boot Annotations, OAuth2.0 and OpenID, JWT and some more advanced topics such as Message queues.
    Please please take kind consideration to this request as I am preparing for interviews with 4+ years of experience and badly searching for awesome content like yours.
    Thanks in advance!

  • @MyAsh1000
    @MyAsh1000 6 месяцев назад

    This is awesome, very clearly explained! Thank you so much :)

  • @user-sapdev
    @user-sapdev Год назад +5

    Great Content.. Keep Doing the good work. It would be great if you can cover all the design patterns specific to Spring Core/Spring MVC/Spring Security, Hibernate/Spring Data, Rest and MicroServices. with use cases. Something unique content and most needed content. Thanks once again.

  • @mrrishiraj88
    @mrrishiraj88 11 месяцев назад +1

    Liked,
    Shared,
    Commented!
    Subscribed!

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

      Thanks for the support

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

    nice explanation, it's really important, please continue on it, the next spring framework interview

  • @user-uz8ef5wl6l
    @user-uz8ef5wl6l 9 месяцев назад

    Thank you very much 🙏🏼

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

    can you highlight real life example of using mandatory and optional injection in term of interview view

  • @dhineshm4798
    @dhineshm4798 7 месяцев назад

    Your videos are really helpful for me to brush up on the topics, thank you very much.

    • @CodeDecode
      @CodeDecode  7 месяцев назад

      Thanks Dhinesh👍🙂

  • @abhimanyusingh8157
    @abhimanyusingh8157 11 месяцев назад +1

    awesome question picked actually same question asked in interview and solution is awesome as well.

  • @prashantkumar-ny2iy
    @prashantkumar-ny2iy 3 месяца назад +1

    thanks for this video, please make more such content like this covering interview questions in Java Spring Boot microservices for an experienced person.

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

    Appreciates all the concepts explained but would be great with examples like: Facade pattern etc.

  • @akashsaha9366
    @akashsaha9366 Год назад +3

    Great video. Looking for more questions related to 7 years plus on spring 6

    • @CodeDecode
      @CodeDecode  Год назад

      Sure Akash 👍

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

      Hey Akash
      Please participate in our give away Man . You have been our constant supporter. We would love to pay you back. Please add your email n name in the form we shared today in the video.

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

    Great Content.. Keep Doing the good work.

  • @someshu9665
    @someshu9665 11 месяцев назад +2

    Great video, it really helps a lot. Please continue with spring boot with more other annotations like Postconstruct etc. Thank you.

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

      sure we will upload it soon

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

    Please make more videos on springboot interview questions,it would be really helpful

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

      Sure we will create it soon

  • @johnnybreathe
    @johnnybreathe Год назад +3

    First time understanding design patterns. Never thought i myself have done some design patterns lol 😅

    • @CodeDecode
      @CodeDecode  Год назад

      Agreed 😊😊

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

      Hey Man. Please participate in our give away Man . You have been our constant supporter. We would love to pay you back. Please add your email n name in the form we shared today in the video. Also please add this Johnny breathe to be able to recognise you.

  • @alper_mulayim
    @alper_mulayim 10 месяцев назад +1

    you are explaining better than other channels

    • @CodeDecode
      @CodeDecode  10 месяцев назад +1

      M glad you felt so 😊

  • @nitinkoli67
    @nitinkoli67 6 месяцев назад +1

    ❤❤❤❤

  • @amarthyaseshu683
    @amarthyaseshu683 11 месяцев назад +1

    This channel is blessing for java devs

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

      Thanks Amarthya . Please participate in our give away Man . You have been our constant supporter. We would love to pay you back. Please add your email n name in the form we shared today in the video.

  • @SubelalPal
    @SubelalPal 7 месяцев назад +1

    Good Content

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

    👍

  • @RajatGupta-vu8xp
    @RajatGupta-vu8xp Год назад

    Please create More Questions. It was awesome

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

      sure we will create more videos on this

  • @abhimanyusingh8157
    @abhimanyusingh8157 11 месяцев назад +1

    please contniue with spring boot ur teaching skills are acceptional

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

      Sure we will create more videos on this

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

    Can we get this presentation as well, which you use in all your videos?

  • @AjithKumar-yc8cu
    @AjithKumar-yc8cu Год назад +1

    Super mam we need react js questions mam

  • @user-eb7vz2ux1d
    @user-eb7vz2ux1d 5 месяцев назад

    can't we get these PPTs????

  • @nileshkumarsingh7610
    @nileshkumarsingh7610 Год назад +3

    Mam can we also have one DS & Algo interview questions or tutorial series

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

    Is a singleton scope a thread safe?

  • @yourvoices
    @yourvoices Год назад

    While serving in a C2H position as a backend developer in some IT company and switch to permanently in another company ? Please guide me is it possible or not?

  • @user-eb7vz2ux1d
    @user-eb7vz2ux1d 5 месяцев назад

    can't we get the these PPTs..........???

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

    How setter stops circular dependency?

    • @CodeDecode
      @CodeDecode  Год назад

      It allows object creation as constructor is not dependent on other bean's creation. Hence deadlock is broken

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

    Nice work, thanks,could you please also do interviews on spring mvc,

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

    Sir please upload complete video

  • @aishwarya2770
    @aishwarya2770 Год назад

    can you share the pdf link ?

  • @yoshitamahajan353
    @yoshitamahajan353 5 месяцев назад +1

    Please create for 7 plus year also

    • @CodeDecode
      @CodeDecode  5 месяцев назад

      Sure we will create it soon

  • @dailyfeedvlog
    @dailyfeedvlog 11 месяцев назад +1

    Please create video on web client vs rest template

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

      Sure Swapnil 👍

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

    Akka - pls put interview questions on web filter chains

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

      Sure Jeet 😊👍

  • @ashrafkhan4097
    @ashrafkhan4097 11 месяцев назад +1

    Please upload spring interview question part 3.🥺 Its missing !!

  • @user-uz8ef5wl6l
    @user-uz8ef5wl6l 9 месяцев назад

    @ => at the rate of

  • @sushilkumar-ln3bg
    @sushilkumar-ln3bg 10 месяцев назад +1

    Please create 7+ and 10+ years quetions

  • @rishiraj2548
    @rishiraj2548 Год назад +3

    🎉🙏👍👍💯

  • @harshitsachdeva4836
    @harshitsachdeva4836 Год назад

    How much u earn from youtube ?

  • @muhassinmusthafa3379
    @muhassinmusthafa3379 10 месяцев назад +1

    I dont know why I didnt notice this chanel earlier..bad luck..missed many good contents..
    The examples of constructor vs setter injection is more useful for interviews..