this post was submitted on 22 Nov 2025
299 points (98.7% liked)

Programmer Humor

41013 readers
209 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] potatoguy@lemmy.eco.br 42 points 2 months ago (1 children)

And the best:

public static void () {}

spoiler/s

[–] Baizey@feddit.dk 5 points 2 months ago (2 children)

Technically java would also be (){} since the modifiers are optional (outside of public static void main(String... args)) and return type is ignore for the others :D

[–] potatoguy@lemmy.eco.br 6 points 2 months ago

Yeah, it's a joke, but I disagree on the void, the other languages on the meme doesn't need a return type (when they are returning nothing), java needs it.

[–] RaphaelSchmitz@feddit.org -5 points 2 months ago* (last edited 2 months ago) (1 children)

Yeah the thing is that each part of "public static void" is a feature. Which other languages don't have.

Still makes a good meme for programmers who are not experienced enough to know that.

[–] orc_princess@lemmy.ml 3 points 2 months ago

Many other languages have a more readable way of conveying access, class vs instance methods, and of course return type.

Newer Java versions look great but the industry is slow to catch on, I've worked with Java 8 for an NGO for only a few months before landing a better job with a different language and the amount of boilerplate we made in just that little while is insane. A lot of it is generated by the IDE, sure, but it's so incredibly redundant.