Mohamed Taman

Mohamed Taman

Mohamed Taman (@_tamanm) is CEO/Owner at SiriusX Innovations, Chief Architect, Java Champion, Oracle Groundbreaker Ambassador, Jakarta EE Ambassador, JCP, Technology Geek, International Speaker, and Author.

Do you want your ad here?

Contact us to get your ad seen by thousands of users every day!

[email protected]
Likes 0
Comments 1
Shares 0
Articles 4
Views 20,1K
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.

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.

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.

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.

Join the Community

Be a Part of Our Network

Mastodon

Subscribe to foojay updates:

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