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.

2. What is prototype?

Having multiple instances or having clones

3. Explain servlet life cycle?


4. What is jsp life cycle?


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

7. What are the oops concept?

Inhertitance, Encapsulation, Polymorphism, Data Abstraction

8. Explain spring framework?

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

Download Interview PDF