A program where output seems simple but it's not because of java compiler optimization of the byte code.
From Java Specs:
If a primitive type or a string is defined as a constant and the value is known at compile time, the compiler replaces the constant name everywhere in the code with its value. This is called a compile-time constant. If the value of the constant in the outside world changes (for example, if it is legislated that pi actually should be 3.975), you will need to recompile any classes that use this constant to get the current value.
On this page of the site you can watch the video online Java Tricky Program 1 - Java Compiler Optimization with a duration of hours minute second in good quality, which was uploaded by the user Diyansh IT Services 05 January 2016, share the link with friends and acquaintances, this video has already been watched 37,600 times on youtube and it was liked by 316 viewers. Enjoy your viewing!