Blog: java specialists

238 blogs updated: 37 min. ago
Issue 303 - Null Keys and Values in Maps
Some Map implementations allow null keys and values. This leads to funky behaviour when calling putIfAbsent() and the compute functions. In ...
30-08-2022 15:31:24 java specialists Beginners
Issue 302 - Virtual Thread Deadlocks
Virtual threads can deadlock, just like platform threads. Depending on what state they are in, this might be quite challenging to analyze. I...
30-06-2022 19:08:17 java specialists Beginners
Issue 301 - Gazillion Virtual Threads
As from this month, Project Loom is part of the mainstream OpenJDK as a preview feature. Expect fantastical results, as bloggers around the ...
24-05-2022 08:36:46 java specialists Beginners
Issue 300 - Break in Switch With Pattern Matching
The enhanced switch is cool. Pattern Matching for switch is super cool (they even timed the JEP number to be exactly 420 - or was that fate?...
26-04-2022 21:24:37 java specialists Beginners
Issue 299 - Synchronizing on Value-Based Classes
Locking on Integer objects has always been a bad idea. And we now have a way to find such bad code with a runtime switch DiagnoseSyncOnValue...
31-03-2022 17:18:05 java specialists Beginners
Issue 298 - Finding Permitted Subclasses
Sealed classes show us which subclasses they permitted. Unfortunately there is no way to do this recursively. In this newsletter we show how...
28-02-2022 21:18:44 java specialists Beginners
Issue 297 - Measuring ForkJoinPool Parallelism
Java has support for parallelism baked into the JDK. We have parallel streams, parallel sort and CompletableFutures, all using the same comm...
31-01-2022 17:53:45 java specialists Beginners
Issue 296 - Concurrent LinkedHashSet
LinkedHashSet is a set that can also maintain order. To make this thread-safe, we can wrap it with Collections.synchronizedS et(). However, ...
31-12-2021 17:47:42 java specialists Beginners
Issue 295 - Faster Empty Streams
Streams can make our code more readable, and therefore more maintainable. However, there is some overhead in setting up the stream, a cost t...
26-11-2021 13:44:37 java specialists Beginners
Issue 294 - String.format() 3x faster in Java 17
One of the most convenient ways of constructing complex Strings is with String.format(). It used to be excessively slow, but in Java 17 is a...
29-10-2021 18:34:36 java specialists Beginners

© Jiri Pinkas | this project on GitHub | related: JavaVids | Maven Central Repository Search | Java školení

Top Java Blogs is a Java blog aggregator (with English-written blogs only) focused on Java SE, Java EE, Spring Framework and Hibernate.

Made better & faster using Java Profiler