Key Takeaways (JvmOverloads, JvmField, and JvmStatic) `@JvmOverloads`, `@JvmField`, and `@JvmStatic` are annotations in kotlin to improve interoperability with the Java code. `@JvmStatic` is used to mark a companion object function or property as a static method in the generated Java bytecode. `@JvmOverloads` is used to generate overloads for the kotlin functions with default values in Java. `@JvmField` is used to mark a kotlin attribute as public fields in Java code.
In...
Published on October 09, 2023 12:48