A simple Unicode escape trick
Do you think the following Java code can compile correctly?
public class HelloWorld {
public static void mainString args {
// This is the first single line comment \u0009\u000a\u000c\u002f\u002a#######
...
IO class of Java 25
Java 25 intrroduced a new class called IO in java.lang package, in order to avoid writing longer code when using System.out.println.
I found a difference in the behaviour from the System.out.println
Just try the following main ...
Introduction
While working on a code, where I wanted to hide some part of the code by using the unicode escapes instead of the actual code, I accidentally discovered an undocumented feature which as been available since Java 16.
I like to call this...
We know that all final variables need initialization before they can be used.
So can we access a final variable before it is initialized?
Well, for the final instance variable and final class variable it is always
possible to access them before they...