Friday, October 28, 2022

Curly Braces #5: Null is not nothing

What’s the meaning of null, and what’s the difference (if any) between null and void?What is null? There’s no easy answer. If this essay were an episode of Seinfeld, it would be called “The Null Column,” because it’s a column about nothing—literally. Upon further inspection, however, null is...

Friday, October 21, 2022

Curly Braces #4: Network data transmission and compression in Java

When data-intensive applications are I/O bound, perhaps you should compress the bytes.I find that writing messaging middleware allows me to build robust distributed enterprise software systems. Once I even built my own Java Message Service (JMS) implementation and learned a lot about Java network I/O and related performance.One...

Wednesday, October 19, 2022

Curly Braces #3: Let’s have fun with Java arrays

Elegant array development might encompass reflection, generics, and lambdas.I was recently chatting with a colleague who develops in C. The conversation came to arrays and how very different they work in Java compared to C—which he found surprising given that Java is considered a C-like language.This exploration of...

Monday, October 17, 2022

Unique Java Card verification and deployment model

A key concept in security is "defence in depth”: multiple controls must be performed in sequence to guaranty Confidentiality, Integrity and Availability of sensitive assets.Java Card products and associated security services are examples of such assets. They are a critical enabler in our day-to-day lives: to pay at...

Friday, October 14, 2022

Implement Interface using Abstract Class in Java

Interface contains only abstract methods that can’t be instantiated and it is declared by keyword interface. A class that is declared with the abstract keyword is known as an abstract class in Java. This is a class that usually contains at least one abstract method which can’t be...

Wednesday, October 12, 2022

GraalVM Enterprise 22.2—Lower memory, smaller downloads, simpler library usage

The GraalVM Enterprise 22.2 release includes much anticipated Apple M1 support, a significant reduction in the memory requirements of Native Image, a smaller base JDK distribution package, and an exciting new facility to make it easier to use third-party libraries in your Native Image compiled applications.Apple Silicon M1/M2If...

Tuesday, October 11, 2022

Quiz yourself: Java’s sealed classes and instanceof checks

What does the Java compiler do when it encounters an instanceof expression?Given the full code of an interface and three classespublic interface Loggable {    static boolean isLoggable(Process p) {        return p instanceof Loggable;    }}sealed class Process permits SlowProcess, FastProcess {}final class SlowProcess extends...

Monday, October 10, 2022

Go deep at JavaOne: 20 developer sessions that caught my eye

What are the latest and greatest features of Java? Where is the platform going? How can you leverage Java’s capabilities to build better application—while also enhancing your own skills as a developer?You’ll find these topics addressed in the technical learning sessions, labs, workshops, and solutions keynotes at the...

Pages (26)1234567 »