this post was submitted on 27 Sep 2025
45 points (95.9% liked)

Java

1857 readers
3 users here now

For discussing Java, the JVM, languages that run on the JVM, and other related technologies.

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] thenextguy@lemmy.world 10 points 2 months ago (8 children)

You mean this?

Now Java supports top-level instance main methods and class-less compact files. That means now the following declaration is valid:

void main() {
    System.out.println("Hello from Java 25!");
}
[–] Scoopta@programming.dev 1 points 2 months ago (2 children)

I'll be honest, I don't get the point of this feature. It's nice for beginners or for writing small, quick, programs...but for the overwhelming majority of all java code I don't see it being useful

[–] brian@programming.dev 3 points 2 months ago

the trend of serverless means that people are writing a ton more programs that are smallish single endpoint things. not that a ton of people are using java there, but that was a major motivation for c#

load more comments (1 replies)
load more comments (6 replies)