Fri. Jul 25th, 2025

Undocumented Java 16 Feature: The End-of-File Comment


While working on some code where I wanted to obscure parts of it using Unicode escapes instead of the actual source, I accidentally stumbled upon an undocumented feature that’s been around since Java 16: what I call the end-of-file comment.

In Java, we typically have three types of comments:

By uttu

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *