Despite Kotlin being more concise and readable than Java for beginners, I don't understand why the latest version of Kotlin still requires a main
function and moreover a println
method. I watched this video and realized that Java 21 doesn't require a main
function or a println
method, instead a print
method.
Based on the fact that Kotlin isn't taking advantage of those new JVM techniques just yet, I don't understand how Kotlin still beats Java nowadays. Does anyone know?