crackyourinterview.com


To improves our performance please Like Share Subscribe(Will boost us)

Write down the main difference in between constructor injection and setter injection?
Question Posted on 22 Aug 2022Home >> Frameworks >> Spring >> Write down the main difference in between constructor injection and setter injection?

Write down the main difference in between constructor injection and setter injection?
Below are the four main difference in between constructor injection and setter injection:-
0
0

Base of DifferenceConstructor injectionSetter injection
Partial InjectionThere is no Partial InjectionThere is Partial Injection
OverrideIt will not override the setter property.It will Overrides the constructor property if both are defined.
New InstanceCreates a new instance if any modification occursIt will not create a new instance if you change the property value.
Property It is better when you have too many propertiesIt is better for a few properties.


.


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




Other Important Questions

Basic defination of Spring Framework

Write down 10 main difference between Spring and Spring Boot

Write down 4 main components of Spring Boot

Write down 3 Main embedded containers support by Spring

Define Spring Framework with details?






@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap