Blog Archives
1 2 3 4 5 6 7 49

01: OOP vs FP with Java example – placing a trade

A Trade goes through 3 state changes – placed, filled, and settled. Let’s solve this simple problem using both OOP & FP approaches.

Place –> Fill –> Settle



01: Q01 – Q07 Spring core interview Q&As

Spring interview questions are very common for the Java programmer jobs.

Q1. What do you understand by the terms Dependency Inversion Principle (DIP), Dependency Injection (DI) and Inversion of Control (IoC) container?
A1. The differences are very subtle and can be hard to understand. …



01: Q07 – Q12 Java Micro & Web services Interview Q&As

Covers “Debugging & troubleshooting a complex distributed system” & “Low latency between fine-grained services”, which are popular interview questions. Extends Java Web Services Basics Interview Q&As – Q01 – Q06. Q7. What is a microservice architecture (aka MSA)? A7. Martin Fowler defines Microservices as a subset of Service Oriented Architecture… …



01: Q13 “12 Rules” for REST API design & development

These are more like rules to develop RESTFul web services as opposed to being the best practices. REST is an architectural style without any contracts or specifications. So, it is imperative to apply the following rules for better REST API design. #1. Write stateless RESTFul services This means each request… …



01: Scala Actors tutorial step by step

This assumes that you have set up Scala as per Setting up Scala IDE & using Maven plugins for Java developers.

Step 1: Add the “scala-actors” dependency to the pom.xml file.



01: Simple Akka tutorial in Java step by step

Why use Akka? Akka handles all of the underlying threading complexities by allowing you to just focus on dividing your tasks into actors, defining messages to pass among actors, and wiring together their communication logic.

The real power of Akka is realized when you distribute actors across multiple machines. …



01: Simple Akka Tutorial in Scala step by step for the Java developers

Simple Akka Tutorial in Scala step by step with Maven. This is reactive programming in action, which is used for message driven interactions. This extends setting up Scala and Simple Akka tutorial in Java step by step

Step 1: Create a scala maven project named “simple-akka-scala” as shown …



01: Simple Spring Boot Tutorial in 8 steps

Assumes that your Java, Maven, and eclipse are set up as per: Setting up Java, Maven, and eclipse

Step 1: Create a simple maven project using the maven “archetype” plugin.



01: Spring DI & IoC interview Q&As

Video: Spring DIP, DI, and IoC. This extends 13 Spring interview questions & answers.

Q1. What do you understand by the terms Dependency Inversion Principle (DIP), Dependency Injection (DI) and Inversion of Control (IoC) container?
A1. Dependency Inversion Principle (DIP



01: Spring MVC beginner tutorial step by step

This tutorial extends Getting started with Apache Tomcat application server by deploying a simple JEE Application to introduce Spring MVC.

Spring dependencies via Maven

Step 1: Modify the pom.xml file in the simpleWeb project to bring in the Spring web dependency jars.



1 2 3 4 5 6 7 49

Java developer & architect Q&As

Java developers Q&As

Top