-
Core Java
Applying New JDK 11 String Methods
In the posts “New Methods on Java String with JDK 11” and “String#repeat Coming to Java?“, I discussed six new…
Read More » -
Core Java
Looking into Java’s Future: Empty Value Types
Although the promising Java value types are not imminent, I still enjoy nosing around occasionally in the OpenJDK valhalla-dev mailing…
Read More » -
Core Java
Deferred Execution with Java’s Consumer
In an earlier blog post (“Deferred Execution with Java’s Supplier“) I referenced Cay Horstmann‘s statement in the book “Java SE8…
Read More » -
Core Java
JDK 11: Beginning of the End for Java Serialization?
In the blog post “Using Google’s Protocol Buffers with Java,” I quoted Josh Bloch’s Third Edition of Effective Java, in…
Read More » -
Core Java
JDK 8 BigInteger Exact Narrowing Conversion Methods
In the blog post “Exact Conversion of Long to Int in Java,” I discussed using Math.toIntExact(Long) to exactly convert a…
Read More » -
Core Java
Exact Conversion of Long to Int in Java
With all the shiny things (lambda expressions, streams, Optional, the new Date/Time API, etc.) to distract my attention that came…
Read More » -
Core Java
JDK 8 Versus JDK 10: Ternary/Unboxing Difference
A recent Nicolai Parlog (@nipafx) tweet caught my attention because it referenced an interesting StackOverflow discussion on a changed behavior…
Read More » -
Core Java
Peeking Inside Java Streams with Stream.peek
For a Java developer new to JDK 8-introduced pipelines and streams, the peek(Consumer) method provided by the Stream interface can…
Read More » -
Core Java
Thread Methods destroy() and stop(Throwable) Removed in JDK 11
The message “RFR(s): 8204243: remove Thread.destroy() and Thread.stop(Throwable)” by @DrDeprecator (Stuart Marks) on the core-libs-dev OpenJDK mailing list is a…
Read More »