Kotlin for Java Developers
eBook - ePub

Kotlin for Java Developers

Confidently transition from Java to Kotlin through hands-on examples and idiomatic Kotlin practices

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Kotlin for Java Developers

Confidently transition from Java to Kotlin through hands-on examples and idiomatic Kotlin practices

About this book

Written by José Dimas Luján 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

  1. Preface
  2. Getting Started with Kotlin
  3. An Introduction to Kotlin and Its Basic Types
  4. Interoperability, Gradle, and Maven
  5. Null and Non-Nullable Types
  6. Extension Functions and the Apply Function
  7. Object-Oriented Programming
  8. Object-Oriented Programming Basics
  9. Generics and Variance
  10. Data and Sealed Classes
  11. Functional Programming
  12. Basics of Functional Programming
  13. Lambda
  14. Collections and Sequences
  15. Coroutines, Testing and DSLs
  16. Coroutines
  17. Synchronous and Asynchronous Programming
  18. Kotlin Testing
  19. Domain-Specific Languages in Kotlin
  20. Unlock Your Book’s Exclusive Benefits
  21. Other Books You May Enjoy
  22. Index

Trusted by 375,005 students

Access to over 1.5 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Year
2025
eBook ISBN
9781835884836

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • 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.5M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1.5 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Kotlin for Java Developers by José Dimas Luján Castillo,Ron Veen in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in Java. We have over 1.5 million books available in our catalogue for you to explore.