Posts tagged Java (5)

Virtual Payara Conference: Full Schedule

Our pioneering virtual business and technology conference will take place on December 14th.  Gain unique insight into Jakarta EE from the best in the business!

We have designed the programme to cater to all levels of Jakarta EE knowledge - learn as a leader! The day-long program has a focus on educating Java professionals and business leaders about the power and potential of Jakarta EE. 

The conference is totally virtual, so you can join from anywhere in the world. You can also pick and choose which sessions to join, and all those who registered will be able to access recordings to watch at their leisure.

Read on for the full schedule...

A Leap Towards Expressive Coding With Record Patterns In Java 21

Java's journey towards fostering more expressive and efficient code has taken a remarkable leap with the advent of Record Patterns, encapsulated in JEP 440. This feature, previewed in both Java 19 and Java 20, is now a part of the language from Java 21, marking a significant stride towards reducing the verbosity traditionally associated with Java language. In this post, we will delve into the essence of Record Patterns, take a look at its benefits, and explore how it fits in with the existing pattern matching capabilities of Java.

Ease into Java 21: Uncovering Instance Main Methods with JEP 445

In the world of programming, stepping stones are crucial for novices to transition into proficient developers. This journey often begins with understanding the syntax and semantics of a given programming language. Java, being one of the popular programming languages, has always aimed to be an effective medium for both novices and experienced developers. The recent release of Java 21 introduced a core feature, known as Unnamed Classes and Instance Main Methods through JEP 445, aimed at simplifying the learning curve for new programmers, making it easier for them to write their first program without much fanfare and verbosity.

A Quick Intro To Java 21 Foreign Function and Memory (FFM) API

Java 21 introduces the Foreign Function and Memory (FFM) API, which allows Java programs to interoperate with code and data outside the Java runtime. Java operates within a managed environment known as the Java Virtual Machine (JVM). The JVM serves as an abstraction layer between the executing Java code and the underlying hardware and OS. One of the core design principles behind the JVM is to provide a secure and isolated environment for Java applications to run. This isolation is beneficial for several reasons, including security and stability; it mitigates risks such as unauthorized access to system resources or memory corruption, which could lead to vulnerabilities like buffer overflows.

How to store JSON in MySQL Database

Developers use MySQL databases in every corner of the world to create cloud-based applications. As they continually look for tools that offer better scalability, performance, and flexibility, many are pairing MySQL with the JSON data format.

Combined, these provide a wealth of benefits for developers. We’re going to briefly examine the ins and outs of MySQL and JSON to get you up to speed, then take a look at some of the things you can achieve using them together.

Java 21 and the Upcoming Jakarta EE 11: A New Era of Cloud Native Java

With Java 21 released today and Jakarta EE 11 slated for release in Q1 of 2024, the landscape for Java development is evolving rapidly, particularly in the cloud-native space. Although these two are not being developed together, they are intrinsically linked: Jakarta EE 11 will have Java 21 as its base Java SE version. This blog post will explore what these two significant releases bring to the table individually and how they can collectively enhance cloud native Java development.

Easily Manage Different Java Versions on Your Machine with SDKMan!

So, you're a Java developer, or maybe you're aspiring to be one. Either way, you've probably faced the challenge of managing multiple versions of Java on your machine. One project requires Java 8, but another needs Java 11, yet another requires Java 17. The open-source library you're keen on contributing to needs yet another version. What do you do? You start juggling environment variables, and before you know it, your system is a tangled mess of configurations. Not fun, right?

And let's not even get started on the difference between JRE and JDK. It's easy for beginners to get confused about the distinction between the two. The JRE (Java Runtime Environment) is sufficient if you just want to run Java applications, but if you're going to be developing them, you'll need the JDK (Java Development Kit). The JDK includes everything the JRE has, plus additional tools and utilities for developers like the Java compiler, or javac.

Tired of all this complexity? Let me introduce you to SDKMan!, a version manager that streamlines the process, making it a breeze to manage multiple Java versions on your machine. Not just Java, SDKMan! can be used to manage a lot more kits and tools such as Maven. In this blog post however, we see how to use SDKMan! to effortlessly manage different versions of Java on the same machine. 

A Look at Virtual Threads in a Jakarta EE Managed Context

Upcoming Java 21 brings a bunch of new features, including very interesting progress in concurrency. There are two main improvements – virtual threads and structured concurrency.

In this article, we discuss incoming usage of these enhancements inJakarta EE (formerly Java EE, now an open source project maintained by the Eclipse Foundation), a set of specifications that enables the worldwide community of Java developers to work on cloud native Java enterprise applications. Jakarta Concurrency is the concrete specification describing the expected behaviour.

The support in Jakarta EE is currently under development, details may change in the final implementation.

Keep Up With Java Platform Changes Through The Java Almanac

Oracle, together with the Java Community over the last few years, have changed the release cadence of the Platform. With biannual releases, the Java of today is a remarkable departure from Java 8. With all the rapid advancement of the language comes the problem of keeping up as a developer.

Thankfully, Java Champions Marc R. Hoffmann and Cay S. Horstmann came up with the Java Almanac website. JA is a great resource that gives you both a summary and detailed overview of changes on the Java Platform from Java 1.0 to Java 22.

The changes are organised in a tabular format with details, links to the respective API and a helpful comparison page. It also has a download page with options to download from any of the JDK distros. All in all, Java Almanac is a great resource to keep abreast of the new release cadence of the Java Platform.