O'Reilly logo

Mastering Android Studio 3 by Kyle Mew

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required