Taking Kotlin for a Ride
The rest of the book will focus on the syntax and the semantics of the Kotlin language. To thoroughly learn the concepts, you’ll want to practice the examples. This section will show you how to set up and verify the necessary environment on your system.
Once you key in your code, Kotlin offers a variety of choices to execute code. Unlike Java, you don’t have to compile every single line of code. You can run the code as is, directly from the source code in a file if you like. Alternatively, you may create class files and then reuse the binary to execute other classes or Kotlin files. While in the middle of writing code, you can fire up the Kotlin shell to experiment with the behavior of a little code snippet. You may ...
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