Qualifying for the Oracle Java Foundations (1Z0-811) exam leads the candidates to earn the Java Foundations Certified Junior Associate credentials. The process provides the candidate with the fundamentals of Java programming, enabling them to showcase their conceptual understanding and abilities.This Oracle 1Z0-811 certification validates the candidate’s capabilities to...
Sunday, January 22, 2023
Friday, January 20, 2023
Minborg’s Java Pot
Did you know you can allocate memory segments that are larger than the physical size of your machine’s RAM and indeed larger than the size of your entire file system? Read this article and learn how to make use of mapped memory segments that may or may not...
Wednesday, January 18, 2023
Quiz yourself: Multithreading and the Java keyword synchronized
The goal is to obtain consistent results and avoid unwanted effects.Imagine that you are working with multiple instances of the following SyncMe class, and the instances are used by multiple Java threads:public class SyncMe { protected static synchronized void hi() { System.out.print("hi "); ...
Friday, January 13, 2023
Quiz yourself: Understanding the syntax of Java’s increment and decrement operators
Do Java expressions such as ii[++i] = 0, ii[i++]++, or i = +(i--) give you a headache?Given the following Calc classclass Calc { Integer i; final int[] ii = {0}; { ii[++i] = 0; // line 1 i--; ...
Wednesday, January 11, 2023
Hidden gems in Java 19, Part 2: The real hidden stuff
Java 19 has a selection of small enhancements, plus thousands of performance, security, and stability updates.Compared to previous Java releases, the scope of changes in Java 19 has decreased significantly by targeting only seven implemented JEPs—most of which are new or improved incubator or preview features. As far...
Friday, January 6, 2023
Hidden gems in Java 19, Part 1: The not-so-hidden JEPs
Java 19’s JEPs contain previews and incubators for pattern matching for switch expressions, record expressions, virtual threads, structured concurrency, and the Vector API.Java 19 has seven main JEPs, which is a lower count than the nine JEPs in Java 18, the 14 JEPs in Java 17, the 17...
Wednesday, January 4, 2023
Quiz yourself: The three-argument overload of the Stream API’s reduce method
There are three reduce overloads; you should know what they do.Imagine you have the following Person record:record Person(String name, Integer experience) {}Your colleague wrote the following code to calculate the total experience of all the people in the stream:public static Integer calculateTotalExperience(Stream<Person> stream) { return stream.reduce(Integer.valueOf(0), (sum,...