Spring Framework is one of the most widely used framework in the industry so, we can expect a lot of questions from this topic in the interview.
We'll start with Very basic interview questions for freshers and then in the upcoming videos we'll cover more advanced questions for experienced developers.
Don't forget to like, share, and subscribe for more coding tutorials!
0:31 What is a Framework?
1:26 What is Spring Framework?
1:52 What are the features of Spring Framework?
2:49 What are different Modules in Spring Framework?
4:53 What is Inversion of Control?
6:03 How Inversion of Control is Implemented in Spring?
7:20 Different ways to implement Dependency Injection
10:00 How to define Beans using XML?
11:20 How to Define Beans using Annotations?
12:54 XML vs Annotations: When to use which approach
To check out more on the tutorials Topic wise you can follow below links
Links:
Please do checkout other tutorial videos also if required:
Spring Framework: • Spring Framework
DevOps: • DevOps
Java Design Patterns: • Design Patterns
Java 8 Features: • Java 8
Core Java Complete Tutorial: • Core Java Complete Guide
Interview Preparation for Java: • Interview Preparation Java
Python: • Python
Linux: • Linux
Please do LIKE, Share and SUBSCRIBE
Thank You
The Spring Framework is an application framework and inversion of control container for the Java platform. The framework's core features can be used by any Java application, but there are extensions for building web applications on top of the Java EE platform.(Wikipedia)
A BeanFactory is like a factory class that contains a collection of beans. The BeanFactory holds Bean Definitions of multiple beans within itself and then instantiates the bean whenever asked for by clients.
The BeanFactory is the actual container which instantiates, configures, and manages a number of beans. These beans typically collaborate with one another, and thus have dependencies between themselves. These dependencies are reflected in the configuration data used by the BeanFactory
BeanFactory also takes part in the life cycle of a bean, making calls to custom initialization and destruction methods.
Bean life cycle is managed by the spring container. When we run the program then, first of all, the spring container gets started. After that, the container creates the instance of a bean as per the request, and then dependencies are injected. And finally, the bean is destroyed when the spring container is closed. Therefore, if we want to execute some code on the bean instantiation and just after closing the spring container, then we can write that code inside the custom init() method and the destroy() method.
Spring Bean Scope in a nutshell refers to the lifecycle and visibility of a bean instance in a Spring-based application. Bean scopes determine the number of instances of a bean that will be created and how long the bean instances will exist. The five main scopes in Spring are: Singleton, Prototype, Request, Session, and Global Session.
#java #spring #springframework #springmvc
Watch video Crack Spring Interview | Questions for Freshers and 1-3 Years of Experience Part-1 online without registration, duration hours minute second in high quality. This video was added by user Lazy Programmer 11 July 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 442 once and liked it 27 people.