Home » Java » Core Java (page 8)

Core Java

Project Valhalla: A First Look at LW2 Inline Types

I summarized some recent Project Valhalla LW2 “inline types” progress that was made public recently in my blog post “Valhalla LW2 Progress – Inline Types.” In this post, I illustrate some of the concepts summarized in that post with code examples executed against recently released Valhalla Early Access Build jdk-14-valhalla+1-8 (2019/7/4). All code examples featured in this post are available ...

Read More »

Valhalla LW2 Progress – Inline Types

There has been significant public-facing progress in the past few weeks (June/July 2019) for Project Valhalla‘s LW2 phase/prototype originally proposed in October 2018. In this post, I briefly summarize some of the messages, documents, and Valhalla Early Access Builds that have been released recently. LW2 is described in the Valhalla Wiki page as an early prototype that “[moves] inline types ...

Read More »

What Does Long-Term Support Mean for OpenJDK?

Bruno Borges recently tweeted a question about long-term support (LTS) of OpenJDK, which shows that there is still some confusion over what this really means.  In this blog post, I’ll explain how the different parts fit together. So… who says, or where it is said, that "#OpenJDK 11" is LTS?I feel there's still confusion regarding LTS definition. Ubuntu has 'openjdk-lts' ...

Read More »

Java hexadecimal floating point literal

How I met hexadecimal floating point numbers I was developing a new functionality into Java::Geci to make it less prone to code reformatting. The current release of the code will overwrite an otherwise identical code if it was reformatted. It is annoying since it is fairly easy to press the reformatting key shortcut and many projects even require that developers ...

Read More »

StringJoiner vs String.join in Java 8 with Examples

Joining multiple String literals or object into one is a common programming requirement and you will often find situations where you need to convert a list of String or a Collection of String into a CSV String for your application. For a long time, JDK API has no way to join multiple String literals or objects together, which forces programmers ...

Read More »

Inject-able only in test?

This article is about some thoughts of test design and testability. Some questions that we discussed with my son, who is a junior Java developer and currently is employed and studies at EPAM Hungary (the same company but a different subsidiary where I work). All the things in this article are good old knowledge, but still, you may find something ...

Read More »

Waste free coding

This article documents solving a meaningful event processing problem in a highly efficient manner through the reduction of waste in the software stack. Java is often seen as a memory hog that cannot operate efficiently in low memory environments. The aim is to demonstrate what many think is impossible, that a meaningful java program can operate in almost no memory. ...

Read More »

The Transient Keyword in Java and Its Use

I recently came a cross in a study project of one of my friends that are studding the basics of programming in Java some forgotten sensitive information printed in text files and remembered the transient keyword in Java. The transient keyword in Java plays an important role in terms of security and can be very useful in “accidents” like the ...

Read More »