3
comments
Actually, in Java 24 it's:
void main() { println("Hello World"); }
9 0 ReplyOh 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?
3 0 Reply
The assembly would be:
Mov rax,1 Mov rdx, 0 Mov rsi, buffer Mov rdi, buffer.length Syscall Mov rax,57 Syscall
2 0 Reply