Actually, in Java 24 it's:
void main() { println("Hello World"); }
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Actually, in Java 24 it's:
void main() { println("Hello World"); }
Oh that's interesting. It kinda reminds me of the C# top level statements feature.
This still creates the function main in the normal way, right?
The assembly would be:
Mov rax,1 Mov rdx, 0 Mov rsi, buffer Mov rdi, buffer.length Syscall Mov rax,57 Syscall