I am new to Spring and I am currently using it in one of my projects. I learned that the Spring container holds all the beans and the scope of all the beans is \"singleton
\"singleton
The container doesn't keep a reference to instantiated beans, the code that's using them does.
If nothing else references the bean (roughly), it's eligible for GC.