Kotlin for Java Developers: Confidently transition from Java to Kotlin through hands-on examples and idiomatic Kotlin practices
商品資訊
ISBN13:9781835884829
出版社:PACKT PUB
作者:José Dimas Luján Castillo
出版日:2025/10/31
裝訂:平裝
規格:23.5cm*19.1cm*2.2cm (高/寬/厚)
商品簡介
Written by Jos?Dimas Luj嫕 Castillo and Ron Veen - seasoned developers with deep expertise in Java and Kotlin - this practical guide teaches Kotlin through side-by-side Java comparisons, real-world examples, and clear explanations of modern language features.
Key Features:
- Learn Kotlin by drawing direct comparisons to core Java concepts
- Understand null safety, coroutines, extension functions, and DSLs through practical examples
- Use Kotlin confidently in backend, Android, and cross-platform development
- Purchase of the print or Kindle book includes a free PDF eBook
Book Description:
This book is a hands-on programming guide for Java developers who want to gain practical, production-ready knowledge of Kotlin. Whether you're maintaining Java systems or adopting Kotlin for Android, backend, or cross-platform projects, it will help you bridge the gap by building on your existing understanding of Java's syntax and design principles.
You'll begin by learning why Kotlin was created and how it improves on Java - exploring types, expressions, control flow, and null handling while mapping each concept to familiar Java constructs. Each topic is introduced with clear purpose, showing how Kotlin's concise syntax, safety features, and expressive APIs lead to cleaner, more maintainable code.
As you progress, you'll master object-oriented and functional programming, extension functions, smart casting, and interoperability with Java. The second half of the book dives into generics, data and sealed classes, coroutines for concurrency, and DSL design - demonstrating when and why to use these features to build scalable, elegant solutions.
By the end, you'll not only write idiomatic Kotlin but also understand the reasoning behind its design, enabling you to craft modern, reliable applications with confidence.
What You Will Learn:
- Write Kotlin programs using variables, functions, and control flow
- Model real-world data with classes, properties, and constructors
- Handle missing data safely with nullable types and safe calls
- Simplify logic using lambdas and extension functions
- Work with Kotlin collections and sequences to process data efficiently
- Use Kotlin with Java, Gradle, and Maven for seamless project builds
- Write non-blocking code using coroutines and Async flows
- Create custom DSL for your projects
Who this book is for:
This book is for software developers who are proficient in Java and want to learn Kotlin for professional application development. It's especially relevant for Android engineers, JVM backend developers, and full-stack programmers who maintain or extend Java systems. Familiarity with core Java syntax and object-oriented programming is expected.
Table of Contents
- An Introduction to Kotlin and Its Basic Types
- Interoperability, Gradle, and Maven
- Null and Non-Nullable Types
- Extension Functions and the Apply Function
- Object-Oriented Programming Basics
- Generics and Variance
- Data and Sealed Classes
- Basics of Functional Programming
- Lambda
- Collections and Sequences
- Coroutines
- Synchronous and Asynchronous Programming
- Kotlin Testing
- Domain-Specific Languages in Kotlin
主題書展
更多書展購物須知
外文書商品之書封,為出版社提供之樣本。實際出貨商品,以出版社所提供之現有版本為主。部份書籍,因出版社供應狀況特殊,匯率將依實際狀況做調整。
無庫存之商品,在您完成訂單程序之後,將以空運的方式為你下單調貨。為了縮短等待的時間,建議您將外文書與其他商品分開下單,以獲得最快的取貨速度,平均調貨時間為1~2個月。
為了保護您的權益,「三民網路書店」提供會員七日商品鑑賞期(收到商品為起始日)。
若要辦理退貨,請在商品鑑賞期內寄回,且商品必須是全新狀態與完整包裝(商品、附件、發票、隨貨贈品等)否則恕不接受退貨。

