What is the difference betweeen @Inject and @Autowired ?
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers

 Q1. What is the difference betweeen @Inject and @Autowired ?Spring
Ans. @Autowired and @Inject are similar in terms of functionality they achieve. @Inject is part of a new Java technology called CDI that defines a standard for dependency injection whereas @Autowired is a Spring specific annotation for dependency injection.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     spring   web frameworks   dependency injection   autowired   inject   spring annotations   ioc


Related Questions

  Explain Flow of Spring MVC ?
  What are the benefits of using Spring Framework ?
  What is MVC ?
 How spring boot works ?
 What is the difference between Singleton and Prototype Bean scope in Spring ?
  How can we manage Error Messages in the web application ?
  Difference between Java beans and Spring Beans ?
  What bean scopes does Spring support? Explain them.
  What are some differences between Spring caching and Hibernate caching?
 Can we have two beans with same class with different bean id in spring ?



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: