Oh come on, please don’t kill the
public static void main(string args)
meme!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!"); }
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
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#
Sure, but I think the argument in favor of this feature is that the overwhelming majority of people picking up programming for the first time tend to be beginners, so if it helps them learn the basics before having to grapple with OOP then it is worthwhile.
I enjoy that the monstrous
System.out.println
is still right below. 🙃Oh come on, please don’t kill the
public static void main(string args)
meme!