Blog Archives

01: 12 Web basics every Java web developer must know – Part 1

Q1. HTTP is a stateless protocol, so how do you maintain state? How do you store user data between requests?
A1. This is a commonly asked interview question. The “http protocol is a stateless request/response based protocol”. You can retain the state information between different page requests as follows:

HTTP Session.

Read more ›



02: HTTP basics on headers, MIME types, & cookies for Java developers

Q1. What happens when you open up a browser and type a URL to request a Web page or RESTFul web service data? A1. HTTP is a stateless protocol on top of TCP (Transmission Control Protocol). 1) When the IP address is obtained, … Read more ›...



03: 21+ Java Servlet interview Q&As

Q1. What is a Servlet? Is a Servlet inherently multi-threaded? A1. A Servlet is a Java class that runs within a web container in an application server, servicing multiple client requests concurrently forwarded through the server and the web container. The web browser establishes a socket connection to the host...



04: 7 JSP interview questions and answers

JSF or JavaScript based frameworks like angularjs, ember, etc are more popular than JSPs for web developemnt. Q1. What is a JSP? How does it differ from a Servlet? A1. JSP stands for Java Server Pages. JSP technology extends the Servlet technology, which means anything you can do with a...



05: Web patterns interview Q&A

Q1. What do you know about model 0, model 1 and model 2 MVC design patterns? A1. In the model 0 pattern, which is also known as the model-less pattern, business logic is embedded in the JSP pages. The model 0 pattern is fine for a very basic JSP page,...



06: Web design patterns MVC2, MVP, MVVM & MVW

Q1. What’s wrong with Servlets? What is a JSP? What is it used for? What do you know about model 0 (aka MVC0), model 1 (aka MVC1) and model 2 (aka MVC2) patterns? In “model 2” architecture, if you set a request attribute in your JSP, … Read more ›...



07: When to use a ServletContextListener in Java EE? Understanding ServletContext and ServletContextListener with examples

A ServletContext object refers to the whole web application, whilst a ServletConfig is for a Servlet. Once an application is deployed onto the web application, ServletContextListener may be configured using annotations or the configuration file named web.xml. … Read more ›...



08: Web.xml interview questions and answers

Since servlet 3.0 specification, the web.xml file in a web application is optional. The servlet 3.0 API introduced annotations to register servlets. Learn more at Servlet Interview Questions and Answers. Q1. What is a web.xml file? A1. … Read more ›...



12 Web basics every Java web developer must know – Part 2

This extends 12 Web basics every Java web developer must know – Part 1 Q7. What do you understand by client side and server side templating? A7. The modern rich single page web applications built today harness the power of dynamically typed and interpreted languages like JavaScript for faster prototyping...



Client-side & Server side view technologies Q&As

Q1. What do you understand by client side and server side view technologies? A1. There are client side & server side view technologies available. Server side view technologies In server-side view technology the most of the page rendering happens on the server side. … Read more ›...



800+ Java Interview Q&As

Java & Big Data Tutorials

Top