β
compiled
maintainability
performance
huge ecosystem
familiarity
β
not good for scripting!
is it still true? π€
Release: JDK 11
run .java files without javac command
compile bytecode into memory
shebang support
#!/usr/bin/java
only single-file source-code programs
Release: JDK 25
IO.println("") instead of System.out.println("")
var in = IO.readln("") for CLI text input
no class declarator
auto import java.base module
simple main
void main() {}
Release: JDK 22
run multi-file source-code programs with java command
execute Java file e.g. with dependencies
java -cp 'lib/*' Main.java
JEP 286: Local-Variable Type Inference
var keywordcode organization
simple json templates
HTTP requests for REST APIs etc.
get and parse Websites (Scraping)
HTTP endpoints as control interface
var json = Json.parse("""
{
"id": 1
}
""");
json.get("id").toInt();void main(){}//DEPS
jbang --nativejbang editjbang init -t=...βοΈ jens@openvalue.de
@jensknipper.de
π openvalue.eu