Core Java
-

How to Customize Serialization In Java By Using Externalizable Interface
In a previous article Everything About Java Serialization Explained With Example, I explained how we can serialize/deserialize one object usingSerializable…
Read More » -

What is Serialization? Everything You Need to Know About Java Serialization Explained With Example
In a previous article, we looked at 5 different ways to create objects in java, I have explained how deserialising…
Read More » -

Java: An Optional Implementation of Optional
The class java.util.Optional is implemented as a single immutable concrete class that internally handles two cases; one with an element…
Read More » -

Java: Benefit from Inline Class Properties Starting from Java 8
In some years, Java will hopefully have an “inline class” feature which solves many challenges with the current state of…
Read More » -

Why Declarative Coding Makes You a Better Programmer
Declarative solutions with functional composition provide superior code metrics over legacy imperative code in many cases. Read this article and…
Read More » -

java.lang.Record: Draft Specification
Work on proposed Java Records continues to proceed. Brian Goetz started three new threads on the OpenJDK amber-spec-experts mailing list…
Read More » -

Draft JEP to Remove Deprecated CMS Garbage Collector
In the 10 April 2017 post “Java Garbage Collectors: When Will G1GC Force CMS Out?,” I discussed JEP 291 (“Deprecate…
Read More » -

Checking What’s Thrown in Java Tests
Someone came up with the idea of using try and catch blocks in unit tests in Java: 1 2 3…
Read More » -

The Chameleon Function
In Doctor Who the character Kamelion was a robot which could take any form. The physical prop they used was…
Read More »
