It feels like some arcane spell when you first learn it, but once you are familiar with Java, each token in that declaration feels totally justified. Like yeah, the args are an array of strings. Yeah, the main function needs to be static and public. Yeah, it doesn’t return anything inside the JVM, so it’s void.
Removed by mod
Say it with me:
PUBLIC STATIC VOID MAIN STRING ARGS
PUBLIC STATIC VOID MAIN STRING ARGS
Removed by mod
you know how it goes
As of java 21, you can actually just use:
void main()
You’ll definitely get to use Java 21 in whatever job you get.
It feels like some arcane spell when you first learn it, but once you are familiar with Java, each token in that declaration feels totally justified. Like yeah, the args are an array of strings. Yeah, the main function needs to be static and public. Yeah, it doesn’t return anything inside the JVM, so it’s void.
Removed by mod
Yeah my brain still thinks about Java in Java 8 because that was primarily what I worked on when I was a dev.
This had me burst out in laughter real hard omg