Blog Archives
1 2 3 4 5

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

This content is for 100-Day-Full-Access, 200-Day-Full-Access, 365-Day-Full-Access, and 2-Year-Full-Access members only. Register 50+ Free Java FAQs 50+ Free Big Data FAQs
Already a member? Log in here


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

This content is for 100-Day-Full-Access, 200-Day-Full-Access, 365-Day-Full-Access, and 2-Year-Full-Access members only. Register 50+ Free Java FAQs 50+ Free Big Data FAQs
Already a member? Log in here


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

This content is for 100-Day-Full-Access, 200-Day-Full-Access, 365-Day-Full-Access, and 2-Year-Full-Access members only. Register 50+ Free Java FAQs 50+ Free Big Data FAQs
Already a member? Log in here


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

This content is for 100-Day-Full-Access, 200-Day-Full-Access, 365-Day-Full-Access, and 2-Year-Full-Access members only. Register 50+ Free Java FAQs 50+ Free Big Data FAQs
Already a member? Log in here


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

This content is for 100-Day-Full-Access, 200-Day-Full-Access, 365-Day-Full-Access, and 2-Year-Full-Access members only. Register 50+ Free Java FAQs 50+ Free Big Data FAQs
Already a member? Log in here


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

This content is for 100-Day-Full-Access, 200-Day-Full-Access, 365-Day-Full-Access, and 2-Year-Full-Access members only. Register 50+ Free Java FAQs 50+ Free Big Data FAQs
Already a member? Log in here


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

This content is for 100-Day-Full-Access, 200-Day-Full-Access, 365-Day-Full-Access, and 2-Year-Full-Access members only. Register 50+ Free Java FAQs 50+ Free Big Data FAQs
Already a member? Log in here


09: 11 SOAP Web service interview Q&As

SOAP Web Services interview Questions & Answers Links: 6 Java RESTful Web services Interview | 5 JAXB interview Questions & Answers | Java Web Services interview Questions & Answers Q1. What are the different approaches to developing a SOAP based Web service? … Read more ›...

This content is for 100-Day-Full-Access, 200-Day-Full-Access, 365-Day-Full-Access, and 2-Year-Full-Access members only. Register 50+ Free Java FAQs 50+ Free Big Data FAQs
Already a member? Log in here


10: SOAP Web Service Styles Interview Q&A

Q1. What is the difference between the “RPC” and “Document” styles in SOAP? A1. There are two communication style models that are used to translate a WSDL binding to a SOAP message body. In RPC style, the body of the SOAP request body must contain both the 1) “operation name...

This content is for 100-Day-Full-Access, 200-Day-Full-Access, 365-Day-Full-Access, and 2-Year-Full-Access members only. Register 50+ Free Java FAQs 50+ Free Big Data FAQs
Already a member? Log in here


10: Spring, JavaConfig (i.e @Configuration), JPA & Hibernate by example

Example #1 Wiring JDBC Datasource

application.yml where the datasource properties are read from.

Example #2 Wiring JDBC Datasource with JNDI

Example #3 Wiring the JPA persistence unit processors Callback interface for post-processing a JPA PersistenceUnitInfo. … Read more ›...

This content is for 100-Day-Full-Access, 200-Day-Full-Access, 365-Day-Full-Access, and 2-Year-Full-Access members only. Register 50+ Free Java FAQs 50+ Free Big Data FAQs
Already a member? Log in here


10+ Domain Driven Design (i.e. DDD) Interview Q&As

Q1. What is Domain Driven Design (i.e. DDD)? What is DDD oriented microservice? A1. Domain-driven design advocates modelling based on the reality of business as relevant to your use cases. In the context of building applications, DDD talks about problems as domains. If you are building a shopping cart application,...

This content is for 100-Day-Full-Access, 200-Day-Full-Access, 365-Day-Full-Access, and 2-Year-Full-Access members only. Register 50+ Free Java FAQs 50+ Free Big Data FAQs
Already a member? Log in here


10+ Key Java Microservices Interview Questions & Answers

Java microservices interview questions and answers covering microservices patterns, best practices, Springboot and Spring cloud . Q1. How will you go about choosing REST vs Messaging for Microservices? A1. Microservices can be invoked both synchronously and asynchronously. Microservices must be organized around business functionalities like Customers, … Read more ›...

This content is for 100-Day-Full-Access, 200-Day-Full-Access, 365-Day-Full-Access, and 2-Year-Full-Access members only. Register 50+ Free Java FAQs 50+ Free Big Data FAQs
Already a member? Log in here


11: JAX-WS how to create a SOAP web service in Java?

Step 1:Create the Java Maven project:

Step 2: Need the libraries/frameworks

This example shows Apache CXF library as JAX-WS implementation with Spring and deployed to JBoss server 5.1.1.

Step 3: Web service interface with JAX-WS annotations

Folder: src/main/java

Step 4: Implementation of Web service interface

Step 5: Spring XML config as IoC.

Read more ›



1 2 3 4 5

300+ Java Interview FAQs

Tutorials on Java & Big Data