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.
In questa pagina del sito puoi guardare il video online Java Tricky Program 1 - Java Compiler Optimization della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Diyansh IT Services 05 gennaio 2016, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 37,600 volte e gli è piaciuto 316 spettatori. Buona visione!