Blog: java specialists |
217 blogs
updated: 11 min. ago
|
||
Today is the 20th anniversary of The Java Specialists' Newsletter. Time to sit back, relax, grab a coffee and wax lyrically about what makes...
|
||
Each PrintStream uses about 25kb of memory. This might seem reasonable if we only have System.out and System.err. But what happens if we try...
|
||
A nice puzzle to brighten your day - how can we make the Iterator think that the List has not been changed?
|
||
Java 8 Streams were the first time that Java deliberately split utility classes into multiple versions to be used for Object, int, long and ...
|
||
Java 8 Streams were the first time that Java deliberately split utility classes into multiple versions to be used for Object, int, long and ...
|
||
A nice puzzle to brighten your day - how can we make the Iterator think that the List has not been changed?
|
||
Biased locking has made unnecessary mutexes cheap for over a decade. However, it is disabled by default in Java 15, slated for removal. From...
|
||
In our next puzzle, we up the ante a bit. We prevent GC during the test() method by storing a strong reference to all our Vectors. Cock and ...
|
||
For today's puzzle, we are getting elements from Vector, sequentially and in parallel. But why is the performance so much worse in Java 15-e...
|
||
The Java ReentrantReadWriteLock can never ever upgrade a read lock to a write lock. Kotlin's extension function ReentrantReadWriteLock.wr it...
|
||
Made better & faster using https://www.yourkit.com/ Java Profiler