Tooling প্রাথমিক

Run single-file Java programs directly without javac.

✕ Java 8
$ javac HelloWorld.java
$ java HelloWorld
// Two steps every time
✓ Java 11+
$ java HelloWorld.java
// Compiles and runs in one step
// Also works with shebangs:
#!/usr/bin/java --source 25
এই কোডে সমস্যা দেখছেন? আমাদের জানান।

One command

java File.java compiles and runs in one step.

📝

Script-like

Add a shebang line to make .java files executable scripts.

🎓

Learning-friendly

Newcomers run code immediately without learning build tools.

পুরনো পদ্ধতি
Two-Step Compile
আধুনিক পদ্ধতি
Direct Launch
JDK থেকে
11
কঠিনতা
প্রাথমিক
Single-file execution
উপলব্ধ

Widely available since JDK 11 (Sept 2018)

The Java launcher can compile and run a single source file in one command. Combined with shebang support on Unix, Java files can work as scripts. No separate compilation step needed.