
Java Interoperability: A Gigantic Undertaking

The programming language after Kotlin – with the creator of Kotlin
Topic 5 of 12
Published Feb 12, 2026 · Clip 44:54–54:56 (10:01)
Andrew calls Java interoperability the single thing Kotlin spent the most time on, joking you should 'ask for a lot of money' to build transparent interop with a system you don't control. He explains the compilation trick—Kotlin compiles first producing class files the Java compiler can read since Java supports separate compilation—plus incremental compilation of two languages at once. He details the 'trickery' layer: exposing covariant Kotlin collections to Java via wildcards, and the hard journey of nullable types, where treating all Java types as nullable failed in practice until Ross Tate helped devise a 'messy but works' calculus for platform types.