Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 
DogFood


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

Home >> 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.


 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


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?






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |