Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Java - Interview Questions and Answers|
|Ans. servlet is a small, server-resident program that typically runs automatically in response to user input. |
A network socket is an endpoint of an inter-process communication flow across a computer network.
We can think of it as a difference between door and gate. They are similar as they both are entry points but they are different as they are put up at different areas.
Sockets are for low-level network communication whereas Servlets are for implementing websites and web services
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  java   j2ee   networking   servlet   socket   difference between.java.net   technologies   architecture|
|What is session tracking and how do you track a user session in servlets?|
| What is deployment descriptor ?|
What is the use of deployment descriptor ?
|Can we have multiple servlets in a web application and How can we do that ?|
|What are different types of cookies ?|
|What is a Servlet Filter ?|
|What is servlet Chaining ?|
|What is a config Object?|
|What is a pageContext Object?|
|What are the phases of the JSP life cycle ?|