48
Moo... moo... (lemmy.world)
all 4 comments
sorted by: hot top controversial new old
[-] ExLisper@lemmy.curiana.net 9 points 3 weeks ago

Actually, in Java 24 it's:

void main() { println("Hello World"); }

[-] Akagigahara@lemmy.world 3 points 3 weeks ago

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?

[-] bacon_pdp@lemmy.world 2 points 3 weeks ago

The assembly would be:

Mov rax,1 Mov rdx, 0 Mov rsi, buffer Mov rdi, buffer.length Syscall Mov rax,57 Syscall

this post was submitted on 06 Jul 2025
48 points (100.0% liked)

Programmer Humor

25407 readers
1209 users here now

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.

Rules

founded 2 years ago
MODERATORS