filmov
tv
Java Tricky Program 1 - Java Compiler Optimization
![preview_player](https://i.ytimg.com/vi/8til0Ej5c80/maxresdefault.jpg)
Показать описание
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.
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 Code Snippets - Episode #1
Tricky Java Coding Programs | Part 1 - OOP Concepts | Tricky Java Coding Interview Questions
Nailing your Java Interview
Top Core Java Interview Questions || Core Java Interview Questions and Answers [MOST ASKED]
Tricky Java Interview Questions and Answers for Experienced Developer | Code Decode | Part - 1
❤❤❤ Make a full heart java code ❤❤💻💻💻📒📒💻😘🤗❤❤
100+ Core Java Tricky Interview Questions and Answers
Big Update in Java for Learners and Trainers
Python Full Stack Batch-2 Session-1 Job-Based , Realtime Training By Javeed, Raj Cloud Technologies
Why people HATE JAVA 😡☕️ #coding #programming
20 Basic Core Java Interview Questions & Answers- TCS, Accenture, Cognizant, Infosys, Wipro, HCL
Java Tricky programming Interview Question and Answer[Most Important]
Java Interview shorts 1 - String Vs StringBuilder Equality Comparison #javainterview #coding
What is PUBLIC STATIC VOID MAIN ( STRING[] Args ) in JAVA | Most Asked interview Question
How to fix your Java error
Core Java Interview Questions & Answers | Top FAQs Explained! | @Javatechie
Should you learn JAVA in 2024? #shorts #java
Tricky questions on Java Interface | java interview questions and answers for experienced / Freshers
Method Overloading Tricky Java Interview Question
Most tricky java programming interview question
Java in 2023 : Still Worth Learning? | Java Programming Pros & Cons | Programming Language | #sh...
Top 10 Java Tricky Coding Interview Questions | Frequently Asked Java Coding Interview Questions
TCS Java Coding Interview | Use this simple method to solve any Java Problem | Selected
Top Tricky Java Interview Questions and Answers | Java Interview Questions and Answers | Code Decode
Комментарии