Java Tricky Program 1 - Java Compiler Optimization

Publicado el: 05 enero 2016
en el canal de: Diyansh IT Services
37,600
316

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.


En esta página del sitio puede ver el video en línea Java Tricky Program 1 - Java Compiler Optimization de Duración hora minuto segunda en buena calidad , que subió el usuario Diyansh IT Services 05 enero 2016, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 37,600 veces y le gustó 316 a los espectadores. Disfruta viendo!