Q:

@Component annotation on class indicates

-3

@Component annotation on class indicates


  1. that a bean should be created for the class
  2. that a bean should not be created for the class
  3. that autowiring should be enabled for the class
  4. that autowiring should not be enabled for the class

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

that a bean should be created for the class

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Java Spring and Spring boot MCQ Quiz (Multiple Choice Questions And Answers)

Similar questions


need a help?


find thousands of online teachers now
In AOP, the job of an aspect is called___________... >>
<< ClassPathXmlApplicationContext searches .xml file ...