What is the scope of stateless bean in spring?



What is the scope of stateless bean in spring?..

Answer / Hariom Narayan

A stateless bean in Spring has a singleton scope by default, meaning that there is only one instance of the bean per Spring IoC container. However, since it's a stateless bean (without any state or client-specific data), each invocation will act as if it were the first.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

What does weaving mean?

1 Answers  


What is eager fetch? : Spring Boot

1 Answers  


Is spring autowired thread safe?

1 Answers  


How do you control the spring life of a bean?

1 Answers  


What is aspect oriented programming (aop)?

1 Answers  


What is entitymanager in spring?

1 Answers  


What is the difference between concern and cross cutting concern in spring aop?

1 Answers  


Which is better spring jpa or hibernate?

1 Answers  


What is spring bean life cycle?

1 Answers  


What is @springbootapplication in spring boot? : Spring Boot

1 Answers  


What is thymeleaf template?

1 Answers  


What are aspect, advice, pointcut, and joinpoint in aop?

1 Answers  


Categories