
- 360 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Kotlin in Action
About this book
Summary Kotlin in Action guides experienced Java developers from the language basics of Kotlin all the way through building applications to run on the JVM and Android devices. Foreword by Andrey Breslav, Lead Designer of Kotlin.Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Technology Developers want to get work done - and the less hassle, the better. Coding with Kotlin means less hassle. The Kotlin programming language offers an expressive syntax, a strong intuitive type system, and great tooling support along with seamless interoperability with existing Java code, libraries, and frameworks. Kotlin can be compiled to Java bytecode, so you can use it everywhere Java is used, including Android. And with an effi cient compiler and a small standard library, Kotlin imposes virtually no runtime overhead. About the Book Kotlin in Action teaches you to use the Kotlin language for production-quality applications. Written for experienced Java developers, this example-rich book goes further than most language books, covering interesting topics like building DSLs with natural language syntax. The authors are core Kotlin developers, so you can trust that even the gnarly details are dead accurate. What's Inside
- Functional programming on the JVM
- Writing clean and idiomatic code
- Combining Kotlin and Java
- Domain-specific languages
About the Reader This book is for experienced Java developers. About the Author Dmitry Jemerov and Svetlana Isakova are core Kotlin developers at JetBrains. Table of Contents
PART 1 - INTRODUCING KOTLIN
- Kotlin: what and why
- Kotlin basics
- Defining and calling functions
- Classes, objects, and interfaces
- Programming with lambdas
- The Kotlin type system
PART 2 - EMBRACING KOTLIN
- Operator overloading and other conventions
- Higher-order functions: lambdas as parameters and return values
- Generics
- Annotations and reflection
- DSL construction
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Part 1. Introducing Kotlin
Chapter 1. Kotlin: what and why
- A basic demonstration of Kotlin
- The main traits of the Kotlin language
- Possibilities for Android and server-side development
- What distinguishes Kotlin from other languages
- Writing and running code in Kotlin
1.1. A taste of Kotlin
Listing 1.1. An early taste of Kotlin

1.2. Kotlinâs primary traits
1.2.1. Target platforms: server-side, Android, anywhere Java runs
- Building server-side code (typically, backends of web applications)
- Building mobile applications that run on Android devices
1âJavaFX: Getting Started with JavaFX,â Oracle, http://mng.bz/500y.
1.2.2. Statically typed
val x = 1
- Performanceâ Calling methods is faster because thereâs no need to figure out at runtime which method needs to be called.
- Reliabilityâ The compiler verifies the correctness of the program, so there are fewer chances for crashes at runtime.
- Maintainabilityâ Working with unfamiliar code is easier because you can see what kind of objects the code is working with.
- Tool supportâ Static typing enables reliable refactorings, precise code completion, and other IDE features.
Table of contents
- Copyright
- Brief Table of Contents
- Table of Contents
- Foreword
- Preface
- Acknowledgments
- About this Book
- About the Authors
- About the Cover Illustration
- Part 1. Introducing Kotlin
- Part 2. Embracing Kotlin
- Appendix A. Building Kotlin projects
- Appendix B. Documenting Kotlin code
- Appendix C. The Kotlin ecosystem
- Index
- List of Figures
- List of Tables
- List of Listings