Hi all, please find your Java newsletter below. The Java Insights newsletter is coming on Sunday, as always. 🚀
🔥 Top Java Posts
1. Java Collections: Big-O Algorithm Complexity
A cheat sheet for Java Collections Big-O algorithm complexity listing the cost for the main operations. As a bonus, it also lists the data structure used to implement each Java Collection. Learn more >>
2. The Future of Java
Java enthusiasts share their opinions on what makes Java so great after 25 years Some highlights are the libraries, stability and the JVM. Learn more >>
🖱️ Just Click It
- Two Ways to Extend Enum Functionality
- 14 High Performance Java Persistence Tips
- Replacing Finalizers with Cleaners
- No Nonsense Guide to JVM Implementations: OpenJDK, OpenJ9, GraalVM
- Thoughts on Why People Perceive Java as a Complex Programming Language
- Loom and Thread Fairness
- Standardizing Native Java: Aligning GraalVM and OpenJDK
🤖 Java Interview Questions
- What is the process of garbage collection?
- It is the process of identifying unused objects in order to reclaim memory space. Unused objects are objects for which there are no references by any part of the program. The garbage collection process takes place in the heap.
- What is the recommended data type to represent and process currency/money operations?
BigDecimal
, because it offers a higher level of precision compared withDouble
. When compared withFloat
,Double
offers a higher level of precision.
❓StackOverflow Java Question
- Avoiding NullPointerException in Java
- What are the differences between a HashMap and a Hashtable in Java?
- How do I generate random integers within a specific range in Java?