Let’s Use Optional to Fix Method Contracts
Optional is a mystery box, a wrapping paper: it may not contain value. When we specify that in a signature, we assume the box might be …
A N M Bazlur Rahman
3,939 viewsOptional is a mystery box, a wrapping paper: it may not contain value. When we specify that in a signature, we assume the box might be …

A N M Bazlur Rahman
5,187 viewsWhen a thread acquires a lock object, no other thread will be able to use it. Once a thread unlocks the lock, other threads acquire it …
A N M Bazlur Rahman
6,445 viewsWe need to be very careful when using the "volatile" keyword, and we should use it only where it’s required, and definitely not everywhere.

A N M Bazlur Rahman
7,040 viewsTip: We can only ask the Java thread to execute a piece of code, but we cannot guarantee the execution order of multiple threads!

A N M Bazlur Rahman
6,847 viewsLet's see an example of where we can use Threads. Let's assume we are building a web server that returns the most used words in a website.
A N M Bazlur Rahman
15,688 viewsTo be able to execute a piece of code requires an execution environment. In Java, a thread is an executing environment.
A N M Bazlur Rahman
5,277 viewsLearn how using compact strings can help you reclaim 25% of Java heap memory and lower your Cloud bills... very easily.

Deepu K Sasidharan
5,299 viewsLet's demystify the concepts behind memory management, taking a deeper look at memory management in some of the modern programming …

Deepu K Sasidharan
14,028 viewsI aim to demystify the concepts behind memory management and take a look at memory management in some of the modern programming languages.

Nicolas Frankel
3,127 viewsteeing() method returns a Collector, a composite of two downstream collectors. There will be a single Collector and a single pass in the …