Spring / Spring interview questions
Can we use a final class as spring bean?
It depends actually. When spring creates a JDK dynamic proxy, the final class will work. When Spring create a CGLIB proxy and your class has at least one public method, then the class cannot be final.
String class is a final class that is widely used as spring bean.
More Related questions...