1. In spring bean class uses singleton or prototype?
By Default spring uses singleton or mention singleton="true" for singleton else false for prototype inside bean tag.
Having multiple instances or having clones
3. Explain servlet life cycle?
init(),service(),destroy()
jspinit(),_jspService(),jspdestroy()
5. What is AOP(assepct oriented programing)?
Separating your business logic with other functionalit
y such as services,Loggers etc,Making classess more cohesive.
6. What are the diff types of exception?
Unchecked and Checked exceptions
Inhertitance, Encapsulation, Polymorphism, Data Abstraction
Spring is lightweight,Inversion controlled,Aspect oriented ,Container framework.
9. What is IOC concept & explain it?
Injecting dependencies to object itself instead of depending on container.
10. Write a singleton program?
Having single instance through out the application.eg.: Loggers