|
|
|
|
|
by rob74
274 days ago
|
|
Yup... if you're familiar with the old class-based approach, the new style raises more questions than it answers. Did they really turn "everything-is-an-object"-Java into a procedural language? What do you do if you do need command line arguments? Etc. (I somehow mostly avoided learning Java, and my last passing contact with it was 20+ years ago, so these are honest questions). |
|
The main function can be written with `String[] args` if you need it.
This is a decent summary of the changes:
https://www.happycoders.eu/java/main-method/
Further details:
https://openjdk.org/jeps/512