Interview Questions for Kotlin Java Interoperability

1. How does Kotlin ensure interoperability with Java?

2. What are platform types in Kotlin, and how do they handle null safety for Java interoperability?

3. How can Kotlin functions be exposed to Java using annotations like `@JvmStatic`?

4. What is `@JvmOverloads`, and how does it help with default parameters in Kotlin for Java compatibility?

5. How can Kotlin properties be accessed from Java, and what are `@JvmField` and `@get:JvmName` annotations?

6. How can Java's checked exceptions be handled in Kotlin?

7. How can Java’s static methods and fields be accessed in Kotlin?

8. How does Kotlin handle Java varargs methods?

9. How can Kotlin call Java overloaded methods effectively?

10. How does Kotlin handle Java’s raw types?