Core Java
-
Java 11: JOIN Tables, Get Java Streams
Ever wondered how you could turn joined database tables into a Java Stream? Read this short article and find out…
Read More » -
Give Me a break, or: How to Make Awesome Puzzlers with Java 12
Java 12 provides, in experimental form, a switch expression and new forms of the switch and break statements. There is…
Read More » -
Functional Java by Example | Part 6 – Functions as Parameters
This is part 6 of the series called “Functional Java by Example”. The example I’m evolving in each part of…
Read More » -
In JDK 9 (and well 8) and above everything can be a stream
In JDK 8 we finally got to use streams and everything was good apart from the times when the API…
Read More » -
Java: Simulating various connection problems with Toxiproxy
Simulate various connection problems with Toxiproxy and Java’s HttpURLConnection to see what kind of errors get produced: connect timed out vs. read timed out…
Read More » -
Migrating from Commons CLI to picocli
Apache Commons CLI, initially released in 2002, is perhaps the most widely used java command line parser, but its API…
Read More » -
Java Integer Cache – Why Integer.valueOf(127) == Integer.valueOf(127) Is True
In an interview, one of my friends was asked that if we have two Integer objects, Integer a = 127; Integer…
Read More » -
Behavioural Design Patterns: Mediator
Previously we had a look at the iterator pattern. The mediator pattern is way different on what it tries to…
Read More » -
Java optional parameters
When you design a method in a Java class, some parameters may be optional for its execution. No matter it…
Read More »