Is singleton thread safe in spring?



Is singleton thread safe in spring?..

Answer / Rishi Kumar Lohiya

By default, Spring's Singleton beans are thread-safe. However, if a Singleton bean contains non-thread-safe code or resources, it could still lead to issues when accessed concurrently.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

What does @bean do in spring?

1 Answers  


What is oauth token?

1 Answers  


What do you understand by auto wiring and name the different modes of it?

1 Answers  


How can the default lifecycle methods of beans be nullified?

1 Answers  


What is postmapping?

1 Answers  


What are the 4 types of springs?

1 Answers  


What is @requestmapping in spring boot? : Spring Boot

1 Answers  


Why angular service is singleton?

1 Answers  


What is repository model?

1 Answers  


Does spring support cdi?

1 Answers  


Why do we need view resolver in spring mvc and what is an internal view resolver in spring?

1 Answers  


What does spring transactional annotation do?

1 Answers  


Categories