Can Java and Kotlin be used together?

Even if it’s interop you can’t mix Java and Kotlin in the same file . If you really want to have static methods/variables you can use an companion object . You can also access create a “real” static method in your JVM by using @JvmStatic .

Sizin İçin Seçtik  What a senior Laravel developer should know?

Leave a Reply

Your email address will not be published. Required fields are marked *