Java Thread Programming (Part 10)
Let's learn about BlockingQueue, one of the essential concurrent collections available in the concurrent package in the JDK.
A N M Bazlur Rahman
3,608 viewsLet's learn about BlockingQueue, one of the essential concurrent collections available in the concurrent package in the JDK.
Wim Deblauwe
5,540 viewsI always struggled with how to implement equals and hashcode, until I learned about the difference between entities and value objects!

A N M Bazlur Rahman
5,137 viewsHave you ever wondered what is the purpose of the "wait()", "notify()", "notifyAll()" methods that come with each Java object?
A N M Bazlur Rahman
3,990 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,212 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,522 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,166 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,879 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,771 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,303 viewsLearn how using compact strings can help you reclaim 25% of Java heap memory and lower your Cloud bills... very easily.