Chapter 2

Kotlin for Java Programmers

IN THIS CHAPTER

check Moving to Kotlin for development

check Considering the things that Kotlin fixes (or doesn’t fix)

check Understanding that Kotlin adds significant new functionality

You’re already behind schedule, and now you find out that you need to learn another new language to keep up to date with Android development. What could be worse? After all, Java isn’t so bad. You’ve used it all these years. The thing is, languages evolve to match the needs of the people using them. Sometimes a language can’t quite evolve enough, though, to address all the issues that people have brought up without breaking everything that came before, which is definitely something you want to avoid. So, the main purpose of creating Kotlin is to address Android development needs that people have brought up without destroying what came before in Java. At least, that’s how we look at it in this chapter. You may have a different take.

Fortunately, if you know Java, you already have some great starting knowledge about how Kotlin works as well because Java is still lurking under the hood. The projects you worked on in Book 1 have allowed you to peek at the Java lurking under the ...

Get Android Application Development All-in-One For Dummies, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.