Java and Kotlin both support programming. Given that Java is the official language of Android, it is given primacy. However, we also write code in Kotlin to address the issue of Java's limited feature set and security flaws.