Blog Archives
1 2 3

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 ›


01: 15 Spring Boot interview Questions & Answers

15 Spring boot interview questions & answers with tutorials for easy setup of new Spring applications. Spring boot helps you get started quickly with its auto-configuration ability, and Spring Cloud Microservices interview questions & answers extends Spring Boot with cloud & … Read more ›...


01: 7 must know Java Web Services Interview Q&As

As an enterprise Java developer, you will be spending more time integrating systems via Java web services & messaging. Java Web Services interview questions are must know for the Java developers.

Q1. What are the different styles of Web Services used for application integration?

Read more ›


01: Q07 – Q12 Microservices Interview questions & answers

60+ microservices interview questions & answers covering Spring boot, Spring cloud, and microservices design patterns. If you are an enterprise Java developer, then most likely you will be developing Microservices using Spring boot. Let’s start with the beginner microservices interview questions & then get to much needed 20+ microservices design...

02: 6 Java RESTful Web services Interview Q&As

Q1. What is RESTful Web service, and why is it favored over SOAP Web service? A1. REST stands for REpresentational State Transfer (REST), which is a stateless software architecture that reads webpages containing XML, JSON, Plain text, etc. REST is a simpler alternative to Simple Object Access Protocol (SOAP) and...

Tags: ,

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 ›...

02: JDBC with MySQL, Datasource, and connection pool Tutorial

Step 1: pom.xml file with commons-dbcp2 for the connection pooling and abstraction layer for the datasource. for connection details

Step 2: Create a new source folder “src/main/resources”.

Step 3: Define the MySQL database “learnjavadb” connection properties in a new file named “”

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...

Tags: , ,

03: JAX-RS how to create a RESTFul Web Service in Java?

Q. What are the high level steps in developing a RESTful web service in Java?
A. You can see the complete tutorial in the tutorials section. This post is to quickly explain the major steps at the job interview. Knowing all the basics is of no use if you can’t write a web service.

Read more ›

03: Kubernetes (i.e. Minikube) – deploy a spring boot microservice app

This extends Kubernetes (i.e. Minikube) – deploy a node js service. Docker containers & Kubernetes for deploying Spring Boot microservices. As mentioned earlier in Kubernetes, Docker & Microservices interview Questions & Answers. Docker gives you application isolation, and solves the dependency hell issues. … Read more ›...

04: 5 JAXB interview Questions & Answers

JAXB interview Questions & Answers Links: 6 Java RESTful Web services Interview | 11 SOAP Web service interview | Java Web Services interview Questions & Answers Q1. What does JAXB stand for? What is an XML Binding? A1. … Read more ›...


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: REST Service URI conventions with Spring MVC

The high level pattern for the RESTful URI is http(s)://{version-no}/{domain}/{rest-reource-convetion} For example: http(s):// to list  … Read more ›...

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 ›...


06: RESTful Web services and HATEOAS Q&A

Q1. What is HATEOAS? How does it provide state transition, scalability, and loose coupling? A1. HATEOAS (Hypermedia as the Engine of Application State) is considered the final level of REST. This means that each link is presumed to implement the standard REST verbs of GET, … Read more ›...


07: HATEOAS RESTFul Service with Spring tutorial

Step 1: Create a Maven project structure Step 2: pom.xml to get right jars Note that “spring-hateoas” is included. The “com.fasterxml.jackson.datatype” is required for the JSON processing. Step 3: Hello class with “ … 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: REST constraints (i.e. design rules) interview Q&A

Q1. What are the 6 REST constraints? A1. REST constraints are design rules that are applied to establish the distinct characteristics of the REST architectural style. These constraints don’t dictate what kind of technology to use, and they only define how data is transferred between components and what benefits we...


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 ›...

1 2 3

300+ Java & Big Data Interview FAQs

Java & Big Data Tutorials