Java 11 introduced single-source-file execution, allowing you to run a .java file directly with the `java` command without a separate compilation step. Beyond quick experimentation, this enables writing proper Unix scripts using a shebang line pointing to the Java binary. Key details include the `--source` flag for specifying Java version, support for preview features, argument passing, class loader behavior, and a practical echo script example demonstrating streams and stdin handling.
Sort: