Java Tricky Program 1 - Java Compiler Optimization

Опубликовано: 05 Январь 2016
на канале: 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.


На этой странице сайта вы можете посмотреть видео онлайн Java Tricky Program 1 - Java Compiler Optimization длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Diyansh IT Services 05 Январь 2016, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 37,600 раз и оно понравилось 316 зрителям. Приятного просмотра!