Programming: Java file runs w/o compiling

Self-tutoring about Java: the tutor mentions an interesting observation.

This morning, on this computer, I updated Java to openjdk-13. Having done so, I wrote a small class file to test the installation.

On the command line I forgot to compile, just typing
java Testfile.java
which ran. Apparently, it’s possible now:

Source:

stackoverflow.com

Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Leave a Reply