Blog: java specialists |
240 blogs
updated: 89 min. ago
|
||
JEP 254 replaced the char[] in our Strings with byte[]. How much memory does this save in our Strings? In this newsletter we show how we can...
|
||
BigInteger has clever algorithms for multiplying large numbers. Unfortunately multiply() is single-threaded. Until now. In this newsletter I...
|
||
JEP 290 introduced the ObjectInputFilter, which we can use to filter objects returned from an ObjectInputStream. We examine three ways of ma...
|
||
Some Map implementations allow null keys and values. This leads to funky behaviour when calling putIfAbsent() and the compute functions. In ...
|
||
Virtual threads can deadlock, just like platform threads. Depending on what state they are in, this might be quite challenging to analyze. I...
|
||
As from this month, Project Loom is part of the mainstream OpenJDK as a preview feature. Expect fantastical results, as bloggers around the ...
|
||
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?...
|
||
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...
|
||
Sealed classes show us which subclasses they permitted. Unfortunately there is no way to do this recursively. In this newsletter we show how...
|
||
Java has support for parallelism baked into the JDK. We have parallel streams, parallel sort and CompletableFutures, all using the same comm...
|
||
Made better & faster using https://www.yourkit.com/ Java Profiler