The advantages of Kotlin
Along with Google's own endorsements, there are a number of good reasons for developers to consider Kotlin. One of the reasons might be the end to null pointer exceptions, which the compiler acheives by not allowing a null value to be assigned to any object reference. Other exciting features of the language include favoring composition over inheritance, smart casting, and the ability to create data classes.
The best way to see how much of an advantage such innovations provide is to take a look at these.
As the screenshot in the preceding section demonstrates, Kotlin can be included into a project directly from the template wizard, but we can also include Kotlin classes from an already open project in precisely the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access