July 2018
Intermediate to advanced
242 pages
8h 6m
English
As the result, the main function from the JavaApp Java class is going to print the following wisdom to the console:
One of the best programming skills you can have is knowing when to walk away for awhile.
Kotlin and Java interoperability is absolutely painless, thanks to the fact that both Kotlin and Java classes are compiled to the same JVM bytecode included in a common codebase. However, there are a few special cases that require additional attention when we want to make Kotlin declarations available on the Java side in a specific way.
First of all, in the ColoredText class, we are marking the constructor with the @JvmOverloads annotation, which tells the compiler to generate multiple instances of the constructor in case ...
Read now
Unlock full access