Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Kotlin

You're reading from   Mastering Kotlin Learn advanced Kotlin programming techniques to build apps for Android, iOS, and the web

Arrow left icon
Product type Paperback
Published in Oct 2019
Publisher Packt
ISBN-13 9781838555726
Length 434 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Nate Ebel Nate Ebel
Author Profile Icon Nate Ebel
Nate Ebel
Arrow right icon
View More author details
Toc

Table of Contents (25) Chapters Close

Preface 1. Section 1: Kotlin – A Modern Solution to Application Development FREE CHAPTER
2. A New Challenger Approaches 3. Programmers' Multi-Tool – Flexible, Expressive, and Concise 4. Section 2: Putting the Pieces Together – Modeling Data, Managing State, and Application Architecture
5. Understanding Programming Paradigms in Kotlin 6. First-Class Functions 7. Modeling Real-World Data 8. Section 3: Play Nice – Integrating Kotlin With Existing Code
9. Interoperability as a Design Goal 10. Crossing Over – Working across Java and Kotlin 11. Controlling the Story 12. Baby Steps – Integration through Testing 13. Section 4: Go Beyond – Exploring Advanced and Experimental Language Features
14. Practical Concurrency 15. Building Your Own Tools – Domain-Specific Languages (DSLs) 16. Fully Functional – Embracing Functional Programming 17. Section 5: The Wide World of Kotlin – Using Kotlin across the Entire Development Stack
18. Kotlin on Android 19. Kotlin and Web Development 20. Introducing Multiplatform Kotlin 21. Taming the Monolith with Microservices 22. Practical Design Patterns 23. Assessments 24. Other Books You May Enjoy

Interoperability as a Design Goal

A terrific interop experience has been at the core of the Kotlin programming language since the beginning. The language itself was born out of a desire to have modern features while still leveraging existing JVM tools and infrastructure. Because of this, and because of the developer community's desire to reuse existing Java tools and code, Kotlin has progressed while maintaining excellent interoperability with existing Java code bases and tooling.

In this chapter, we'll learn more about the why and how of Kotlin/Java interop, and we'll walk through adding Kotlin to an existing Java project to demonstrate how easy it is to start working with both languages within a single project.

The following topics will be covered in this chapter:

  • Understanding why Kotlin was designed with Java interoperability in mind
  • How to add Kotlin to an...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime