filmov
tv
Top Spring Interview Questions and Answers for Freshers and Experienced | Code Decode

Показать описание
In this video of code decode we have covered most asked spring interview questions and answers for freshers and experienced
Udemy Course of Code Decode on Microservice k8s AWS CICD link:
Course Description Video :
What is Spring Framework?
Its an open source java application development framework which supports building of all types of java applications like web application, DB Driven application, Enterprise applications etc.
What are the features of Spring Framework?
LightWeight : Spring jars are smaller in size ie. 10 MBs. And these don’t need heavy weight application servers to.
Spring Container : It takes care of object creation , initialization and managing object dependencies.
What do you mean by IoC (Inversion of Control) Container?
Represents the inversion of responsibility of object creation, initialization and destruction (life cycle management) from application to Spring Container.
In normal Programming, we create object with New Keyword.
In Spring We depend on Container to provide us with the required dependency Object.
How is the configuration metadata provided to the spring container?
There are 3 ways of providing the configuration metadata.
XML based
Annotation Based : Instead of the XML approach, the beans can be configured into the component class itself by using annotations on the relevant class, method, or field declaration.
Annotation wiring is not active in the Spring container by default. This has to be enabled in the Spring XML configuration file as shown below: context:annotation-config
Java configuration Based:
Spring Framework introduced key features as part of new Java configuration support. This makes use of the @Configuration annotated classes and @Bean annotated methods. Note that:
@Bean annotation has the same role as the bean element.
Classes annotated with @Configuration allow to define inter-bean dependencies by simply calling other @Bean methods in the same class
Subscriber and Follow Code Decode
#codedecode #bubblesortalgorithm #sortingalgorithmjava
Udemy Course of Code Decode on Microservice k8s AWS CICD link:
Course Description Video :
What is Spring Framework?
Its an open source java application development framework which supports building of all types of java applications like web application, DB Driven application, Enterprise applications etc.
What are the features of Spring Framework?
LightWeight : Spring jars are smaller in size ie. 10 MBs. And these don’t need heavy weight application servers to.
Spring Container : It takes care of object creation , initialization and managing object dependencies.
What do you mean by IoC (Inversion of Control) Container?
Represents the inversion of responsibility of object creation, initialization and destruction (life cycle management) from application to Spring Container.
In normal Programming, we create object with New Keyword.
In Spring We depend on Container to provide us with the required dependency Object.
How is the configuration metadata provided to the spring container?
There are 3 ways of providing the configuration metadata.
XML based
Annotation Based : Instead of the XML approach, the beans can be configured into the component class itself by using annotations on the relevant class, method, or field declaration.
Annotation wiring is not active in the Spring container by default. This has to be enabled in the Spring XML configuration file as shown below: context:annotation-config
Java configuration Based:
Spring Framework introduced key features as part of new Java configuration support. This makes use of the @Configuration annotated classes and @Bean annotated methods. Note that:
@Bean annotation has the same role as the bean element.
Classes annotated with @Configuration allow to define inter-bean dependencies by simply calling other @Bean methods in the same class
Subscriber and Follow Code Decode
#codedecode #bubblesortalgorithm #sortingalgorithmjava
Комментарии