News

Records (Java 14 and 15): Records enable developers to easily define classes for holding data without having to write much additional code. Pattern Matching and Sealed Classes: These assist in making ...
Generics programming in Java enhances type safety and code reusability by allowing developers to define classes and methods using type parameters. Advanced techniques like bounded types and ...
I encountered a problem when using apache poi to export to excel. In the Windows environment (java -jar), I can export to excel normally. After packaging the project into native-image in the Linux ...
Imagine you are an expert object-oriented Java developer who meticulously crafts code the way an artist cares for their masterpiece. You believe clean code is an absolute necessity. Classes with clear ...
Googling for "Java return multiple values" reveals people like some "javatuples" library. I have not played with records yet, but if you are using Java >= 16, I would test using records.
If you are on Java 16 or above consider that the use of Records is recommended over ordinary classes as they are immutable per definition. Remember that SonarLint, SonarQube, and SonarCloud with their ...