Building a PostgreSQL Wire Protocol Server Using Vanilla, Modern Java 21

A dual-purpose tutorial to 1) Demonstrate how to implement the Simple Query Protocol, where Java is an implementation detail; 2) Show practical examples of most of the new features since JDK 17, including Records, Sealed Types, Pattern Matching for Switch… Read more

Similar

Backspaces in String Challenge Using Java

The challenge Assume "#" is like a backspace in string. This means that string "a#bc#d" actually is "bd" Your task is to process a string with "#" symbols. Examples Test cases The solution in Java Option 1: Option 2 (using regex): Option 3 (using substrin... (more…)

Read more »