September 2019
Intermediate to advanced
462 pages
11h 3m
English
The focus of this book is Kotlin for developers familiar with Java, and in this chapter, we’ll take a look at intermixing Kotlin and Java code. We’ll first look at calling Java code from Kotlin. Then we’ll dive into the intricacies of calling Kotlin code from Java.
If your application is being developed predominantly using Kotlin, you may use Java libraries in your projects as much as you want. You may even intermix Kotlin source files and Java source files in your projects, if you like. You’ll see in this chapter that calling Java code from within Kotlin is straightforward, and the issues you’ll run into are minimal and easy to resolve.
If your application is mostly written in Java, you may use Kotlin ...
Read now
Unlock full access