Why there are only Run-time exception in Spring ? 

Lets first understand the best practices regarding handling Exceptions while designing an API or framework. If the client can take some alternate action to recover from the exception, make it a checked exception. If the client cannot do anything useful, then make the exception unchecked. By useful, I mean taking steps to recover from the exception and […]

Continue Reading

Difference between Java Singleton and Spring Singleton?

There is common misunderstanding between Spring Singleton and Java Singleton classes.  If you don’t know Singleton design pattern Please read Singleton Design pattern first. Java singleton class is per Classloader and Spring’s singleton is per application context. Java considers something a singleton if it cannot create more than one instance of that class within a […]

Continue Reading