The State of Pattern Matching in Java 17
Pattern matching is a language feature where you can test for a specific pattern on a character sequence or a data structure.
312 articles in this category.
RSS feed
Deepu K Sasidharan
3,760 viewsPattern matching is a language feature where you can test for a specific pattern on a character sequence or a data structure.
A N M Bazlur Rahman
3,616 viewsLet's learn about BlockingQueue, one of the essential concurrent collections available in the concurrent package in the JDK.
Wim Deblauwe
5,556 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,159 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
4,001 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,228 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,544 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,189 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,903 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,814 viewsTo be able to execute a piece of code requires an execution environment. In Java, a thread is an executing environment.