Friday, March 31, 2023

Java Modules: An Introduction

Java is one of the most widely used programming languages in the world. It has been around for over two decades and has been used to develop some of the most popular software applications in use today. However, Java has always had a few limitations that have hindered...

Wednesday, March 29, 2023

Quiz yourself: Java’s date and time TemporalAccessor generation interface

By the way, how’s your working knowledge of the Liskov substitution principle?Given the following code fragmentString pattern = "dd MMM yyyy HH:mm";DateTimeFormatter formatter = DateTimeFormatter.ofPattern(pattern);LocalDate x = LocalDate.of(2022, 11, 1);System.out.println(formatter.format(x));What is the result if the default locale is en_US? Choose one.A. 01 Nov 2022 is printed. B. 01...

Friday, March 24, 2023

Announcing GraalVM Enterprise 22.3

The GraalVM 22.3 release delivers several new features including much anticipated support for Java 19 along with preview support for Project Loom virtual threads in both JVM JIT and Native Image ahead-of-time compiled applications. The release also includes compiler performance improvements, new monitoring and debugging features in Native...

Thursday, March 23, 2023

Java EE 7 Application Developer (1Z0-900) Certification: Is It Worth It?

The Java EE 7 course, aligned with the Oracle Java EE 7 Application Developer (1Z0-900) exam, certifies programming skills for developing and deploying Java Platform, Enterprise Edition 7 applications. Enterprise Edition (Java EE) is the industry standard for community-driven enterprise applications. Industry professionals, commercial and open source organizations,...

Wednesday, March 22, 2023

Quiz yourself: The strange case of the Java developer’s birthday

You want to know what the day of the week will be, one year from today.On her birthday one August, a Java developer decided to check what day of the week her next birthday will fall on.Given the following partial codeLocalDate birthday = LocalDate.now();// line n1DayOfWeek dow =...

Monday, March 20, 2023

Go Native with Spring Boot 3 and GraalVM

IntroductionThere has been a lot of interest in the past few years about "native Java". You've probably read articles or seen conference talks on the subject.TL;DR - "native Java"Traditionally Java programs are compiled to bytecode. At runtime the bytecode is first interpreted and eventually compiled to native machine...

Wednesday, March 15, 2023

Quiz yourself: Deserialization of Java enum types and records

Whenever code running in a JVM refers to a particular enum value, execution cannot proceed unless that enum value has been initialized.Imagine you are given the following enum and record:enum Gender {  MALE("M"), FEMALE("F"), OTHER;  Gender() {    System.out.print("Gender ");  }  Gender(String s) {    System.out.print("GenderS ");  }}record...

Monday, March 13, 2023

TruffleRuby on OCI Container Instances

Elegance at SpeedRuby is one of my favourite programming languages. I really appreciate how expressive it is, how productive (and how much fun) it makes development.Unfortunately Ruby has a reputation for being slow compared to other languages such as JavaScript.While the performance of the default Ruby interpreter has...

Friday, March 10, 2023

Quiz yourself: Verifying the operation of stinky Java code

What do you do when the certification test shows you deliberately terrible code?Your colleague is working on an application that analyzes statistics for vehicles of different makes and models. A business rule requirement is that each car instance in the application must have a unique manufacturing year; creating...

Monday, March 6, 2023

Pseudorandom numbers in Java, Part 2: Randomness with Java 17

When your applications need random numbers, you have several excellent algorithmic options.Java 17 introduced significant changes to the platform’s pseudorandom number generation capabilities. The first article in this series, “Pseudorandom numbers in Java, Part 1: The Background,” offers a discussion of pseudorandom number generators (PRNGs) and how they...

Pages (26)1234567 »