How To
Lambda Expressions and Exception Handling
This short article will explore a few options to handle checked and unchecked exceptions in lambda expressions.
Streams and Iterables
In this short article, we'll explore various StreamSupport methods that allow us to wrap an Iterable instance as a stream of elements.
Checked Collection - stronger type safety
CheckedCollection helps to enforce strong type safety when mixing generic and non-generic code.
Streaming large dataset over Rest
How to use StreamingResonseBody to stream large amount of data to a client using SpringBoot.
How to manage multiple Java versions on Windows PC?
In this post, we'll discuss how to quickly install and switch between different Java versions on a Windows machine.
LRU Cache
Least recently used (LRU) eviction policy defines the eviction criteria to control the number of entries present in a cache.
Using enum as a Simple Factory
In this post, we'll see how we can use an enum to implement a simple factory.
JGit - manage git workflow programmatically
How to use jgit to programmatically manage git workflow like repository management, pull and push operations etc.
Prioritize tasks in a ThreadPoolExecutor
In this post, we'll explore how to prioritize tasks submitted to a ThreadPool.