Comparison to Java
Comparison to Java
Some Java issues addressed in Kotlin
Kotlin fixes a series of issues that Java suffers from
- Null references are controlled by the type system.
- No raw types
- Arrays in Kotlin are invariant
- Kotlin has proper function types, as opposed to Java's SAM-conversions
- Use-site variance without wildcards
- Kotlin does not have checked exceptions