Java

Five Minimum Viable Interview Questions series — Updated 17 Feb 2023

Interviewer: ask them if your interview is running out of time. Interviewee: practice them if your preparation is running out of time.

February 17, 2023 · 1 min read

Five Minimum Viable Interview Questions series — Updated 17 Feb 2023

Five Minimum Viable Spring REST Interview Questions

Interviewer: ask them if your interview is running out of time. Interviewee: practice them if your preparation is running out of time.

January 12, 2023 · 7 min read

Five Minimum Viable Spring REST Interview Questions

Maven — 3 Free Resources for Beginner and Intermediate Java Developers

I find them helpful. I hope you do too.

January 7, 2023 · 2 min read

Maven — 3 Free Resources for Beginner and Intermediate Java Developers

Work-hard Verifying or Work-smart Mocking

Testing is hard work, let’s make it easier

January 4, 2023 · 3 min read

Work-hard Verifying or Work-smart Mocking

Retry WebClient Request

Retrying a WebClient request using RetrySpec, and unit-testing it

December 30, 2022 · 4 min read

Retry WebClient Request

The best way to fix Hibernate’s MultipleBagFetchException

Adapting from https://vladmihalcea.com plus sample codes for Spring Data JPA

December 4, 2022 · 6 min read

The best way to fix Hibernate’s MultipleBagFetchException

Echo API

A maven library of a /echo API that echoes HTTP request’s details back to the caller.

November 30, 2022 · 2 min read

Echo API

Unit testing Java’s try-with-resource

November 29, 2022 · 3 min read

Unit testing Java’s try-with-resource

Java Method Reference

Method reference lets you use an existing method as a lambda as long as their signature (input & output) are compatible.

November 27, 2022 · 4 min read

Java Method Reference

Java Stream Interview Tests - takeWhile

Stream has been an important part of Java development since Java 8. This test assesses candidates' understanding of Stream’s mechanics

November 1, 2021 · 4 min read

Java Stream Interview Tests - takeWhile

Java Stream Interview Tests - Distinct Characters

October 30, 2021 · 3 min read

Java Stream Interview Tests - Distinct Characters

Spring REST API Interview Questions

Use these to assess multiple practical aspects of a candidate’s skills and experience

October 19, 2021 · 4 min read

Spring REST API Interview Questions

javax.transaction.Transactional vs org.springframework.transaction.annotation.Transactional

It’s easy to mix especially when we only need the default setting

September 10, 2020 · 1 min read

What Happened When You Assigned State to a Stateless Session Bean?

It’ll probably result in an EJBTransactionRolledbackException caused by a NullPointerException

September 10, 2013 · 1 min read

JSR 303 – Bean Validation – Let Your Bean Validate Itself

December 20, 2012 · 1 min read

JDBC Transaction Without EJB

EJB 3 is simple enough that delegating transaction management to it only cost little in creating and annotating an EJB business interface method. However, if you want to skip EJB altogether yet ensure all queries get executed inside a transaction, here’s a quick way

October 24, 2012 · 1 min read

JSR 303 – Bean Validation – Custom Constraints

August 25, 2012 · 2 min read

JSR 303 – Bean Validation – Nested Validation

August 9, 2012 · 2 min read

JSR 303 – Bean Validation – Basic

August 3, 2012 · 2 min read

SPRING MVC – SESSIONATTRIBUTES ANNOTATION

June 30, 2012 · 1 min read

Java XML Parse error: Tried all: '1' addresses, but could not connect over HTTP to server

March 9, 2012 · 1 min read

Quicksort vs Merge sort in Java

December 12, 2010 · 2 min read

J2EE Programming Tips

May 4, 2009 · 2 min read