Kotlin 2.0 Crash Course

ebook

By Elara Drevyn

cover image of Kotlin 2.0 Crash Course

Sign up to save your library

With an OverDrive account, you can save your favorite libraries for at-a-glance information about availability. Find out more about OverDrive accounts.

   Not today

Find this title in Libby, the library reading app by OverDrive.

Download Libby on the App Store Download Libby on Google Play

Search for a digital library with this title

Title found at these libraries:

Library Name Distance
Loading...

This book starts with core syntax and control flow, then covers variables, data types, and constructs such as if-else, when, while, and do-while loops. It then introduces function design with reusable code, higher-order functions, and lambda expressions. The subsequent chapters thoroughly explore classes and constructors, inheritance, interfaces, and encapsulation principles that promote modular design and data safety. The book devotes a dedicated section to examining collection frameworks, including lists, arrays, sets, and maps, and clearly illustrates filtering, transformation, and iteration techniques. You will learn how immutable snapshots and mutable services interact via observer patterns to synchronize application components in real time. You will learn all about creating a pipeline using chaining, mapping, and flattening operations. Finally, robust error handling and type-casting strategies provide guidance on exception capture, safe casting, and graceful recovery. Later chapters discuss JSON serialization, RESTful API design, and building a web server with Ktor.

List of Chapters:

Up and Running with Kotlin 2.0

Variables, Data Types, and Basic Operations

Control Structures and Program Flow

Functions and Modular Programming Techniques

Object-Oriented Constructs and Class Design

Collection Handling and Iteration Patterns

Managing Application State and Behavior

Functional Programming with Lambdas

Error Handling and Type Casting

Handling JSON and Data Serialization

Designing RESTful API

Building Web Server with Ktor

Kotlin 2.0 Crash Course