What is a servlet?
- A servlet is a Java programming language class that is used to extend the capabilities of servers that host applications accessed by means of a request-response programming model.
What is J2EE?
What is the Lifecycle of a Servlet?
1) Servlet class is loaded
2) Servlet instance is created
3) Init method is invoked
4) Service method is invoked
5) Destroy method is invoked
App Server vs Web Server
What is XML?
- It defines set of rules for encoding documents in a format that is both human-readable and machine readable
What is JAXB?
- It is used to convert Java Object to XML and XML to Java Objects.
What is Marshalling?
What is Unmarshalling?
What is MVC?
MVC is an architectural pattern that separates an application into three main
components:
What is the deployment descriptor?
What are the important tags you need to include in the web.xml?
Eager Loading vs Lazy Loading
URL vs URI vs URN
What are the method signatures of doGet() and doPost()?
Init, Service and Destroy, how many times do they execute?
- The service method is called for every request the servlet receives.
doGet vs doPost vs GET vs POST
Another name for web.xml?
How do I declare a Servlet?
servlet tag
servlet-name servlet1 /servlet-name
servlet-class com.xx.servClass /servlet-class
/servlet
How does Error Handling work on JEE?
How to maintain user state?
What are filters?
What is a thread pool?