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

Actually, in Java 24 it's:

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

[-] Akagigahara@lemmy.world 3 points 6 days 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 6 days 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
40 points (83.3% liked)

Programmer Humor

24957 readers
2746 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