adspace


Why singleton beans are not thread safe?

Answer Posted / Prakhar Tiwari

Singleton beans are not thread-safe by default because when multiple threads try to access the instance simultaneously, they may interfere with each other during the initialization process, leading to inconsistent states or errors.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Did you use ooa/ood methodologies? Did you use design patterns?

1195