Mark all correct features of the @Bean and @Component annotations in the table below.
@Bean vs @Component
@Bean vs @Component
Report a typo
Choose one option for each row
| @Bean | @Component | |
|---|---|---|
| Method-level annotation | ||
| Class-level annotation | ||
| Should be used with @Configuration | ||
| Can be replaced always with @Service |
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.