r/java • • Jun 10 '24

[deleted by user]

[removed]

615 Upvotes

594 comments sorted by

View all comments

Show parent comment

0

u/thecodeboost Jun 21 '24

Exactly the same way Kotlin does it. Kotlin is sugar. Static analysis still just parses the AST as-is. The difference is not in the analysis but in being able to write code that fails it which, of course, Java allows more of.