Mohamed Taman4 articles

Latest post Foojay Podcast #28: Java 21 Has Arrived!

Since 2018, we get a new version of Java every 6 months. And version 21, released during today, is a long-term support version that can be used for many years.

Avatar photo
September 19, 2023
  • Hidden and Not-So-Hidden Gems In Java 20

    Let’s see the preview and incubator JEPs in Java 20, as well as many smaller enhancements, bug fixes, and deprecations.

    • Mohamed Taman
    May 03, 2023
  • Running Single-File Java Source Code Without Compiling (Part 2)

    Let’s continue from part 1 of this series, by looking at JEP 330, Launch Single-File Source-Code Programs, which is one of the new features introduced in the OpenJDK 11 release. This feature allows you to execute a Java source code file directly using the java interpreter.

    The source code is compiled in memory and then executed by the interpreter, without producing a .class file on disk.

    However, this feature is limited to code that resides in a single source file. You cannot add additional source files to be compiled in the same run.

    • Mohamed Taman
    September 10, 2020
  • Running Single-File Java Source Code Without Compiling (Part 1)

    Instead of starting up the JVM, loading a class and executing the code, you can run single Java source files.

    This feature is particularly useful for someone new to the language who wants to try out simple programs, you get a great beginner’s learning toolset.

    Professionals can also make use of these tools to explore new language changes or to try out an unknown API.

    • Mohamed Taman
    September 08, 2020
1-4 of 4

Subscribe to foojay updates:

https://foojay.io/today/author/mohamed-taman/feed/
Copied to the clipboard