The Java compiler is able to pre-calculate certain values for us at compile time. This allows us to use some variables with expressions that must be constant, and leads to some runtime efficiencies.
Also find me here:
Baeldung Author
Daniel Strmecki
Daniel Strmečki is a Java and AEM Solution Architect with a strong focus on quality, modularity, and reusability. Throughout his career, he gained experience in software development, solution design, project, and people management. Daniel has an open, ambitious, stubborn, and perfectionist personality. He likes sports, modern technology, technical challenges, motivated colleagues, and well-defined processes.
Here's what I've written (so far):
Baeldung on Java
- All
- Core Java (8)
- NoSQL (3)
- Web Services (2)
- Spring Data (2)
- Java List (2)
- JVM (2)
- HTTP Client-Side (2)
- Testing (1)
- Spring Web (1)
- Spring Boot (1)
- REST (1)
- Networking (1)
- Maven (1)
- Logging (1)
- Java Streams (1)
- Java Numbers (1)
- Java Map (1)
- Java Concurrency (1)
- Java Collections (1)
- Java (1)
The Java final Keyword – Impact on Performance
Filed under Core Java
Explore if there are any performance benefits from using the final keyword on a variable, method, and class
Guide to Implementing the compareTo Method
Filed under Core Java
Learn about how to implement the compareTo method using core Java.
Is Java a Compiled or Interpreted Language?
Java provides the speed of a compiled language with the portability of an interpreted language. We investigate how the JVM and JIT compiler work, and how to classify Java as a language.
New Features in Java 11
Filed under Core Java
Java 11 brings new features, including convenience methods in the standard libraries and the integration of the new HTTP Client. We review these and other improvements.
ArrayList vs. LinkedList vs. HashMap in Java
Filed under Java Collections, Java List, Java Map
Learn about the differences between three of the most common Java Collections: ArrayList, LinkedList, and HashMap
Sealed Classes and Interfaces in Java
Filed under Core Java
Explore sealed classes and interfaces, a preview feature in Java SE 15, delivered in Java 17.
Finding a Free Port in Java
Filed under Networking
Learn about how we can search for free ports for Java servers.
Finding the Differences Between Two Lists in Java
Filed under Java List
We investigate how to finding elements present in one list, but not in another, including lists with multiple copies of the same element.