Online assessment: 5 problems - 2 leetcode hards, 1 relatively easy SQL query, 1 refactor-a-class problem and 1 design problem Technical interview: How do you create a bean? No, I don't mean that. How do you create the bean? What type of bean is it? That's not what scope means (it actually is). Ok, and how does Spring do that in the back? Tell me the implementation.
Anonimo
With the bean annotation in a configuration class or with the @Component annotation or any derived annotation from it like @Controller, @Service, @Repository. If you are asking me what scope it is, it's either singleton or prototype. I suppose for singleton it creates a lazy loaded singleton instance in the context and for the prototype it just creates as many beans as you tell it to.