> Documentation index: https://developer.android.com/courses/llms.txt

# Kotlin fundamentals


Learn more on fundamentals of Kotlin, object oriented programming and lambdas.  


Go back

## Kotlin Fundamentals

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Video *Optional*

Welcome to Unit 2! We begin this unit by learning more on the fundamentals of the Kotlin programming language.

<button class="playlist-skip gc-analytics-event" data-category="devsite-playlist: skip button"> Skip </button>

## Write conditionals in Kotlin

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Codelab

Learn how to write conditionals in Kotlin.

[Take codelab](https://developer.android.com/codelabs/basic-android-kotlin-compose-conditionals)

## Use nullability in Kotlin

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Codelab

Learn how to use nullability in Kotlin.

[Take codelab](https://developer.android.com/codelabs/basic-android-kotlin-compose-nullability)

## Use classes and objects in Kotlin

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Codelab

Learn how to use classes and objects in Kotlin.

[Take codelab](https://developer.android.com/codelabs/basic-android-kotlin-compose-classes-and-objects)

## Use function types and lambda expressions in Kotlin

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Codelab

Learn how to use lambda expressions and higher order functions in Kotlin.

[Take codelab](https://developer.android.com/codelabs/basic-android-kotlin-compose-function-types-and-lambda)

## Practice: Kotlin Fundamentals

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Codelab

Apply the basic concepts of the Kotlin programming language to solve the given problems.

[Take codelab](https://developer.android.com/codelabs/basic-android-kotlin-compose-kotlin-fundamentals-practice-problems)

## What's next?

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Video *Optional*

This pathway introduced four more important programming topics: conditionals, object-oriented programming, nullability, and function types. You learned how to use these concepts in Kotlin. In the upcoming pathways you will use this knowledge to create more functional and interactive apps with buttons, forms and other user controls!

<button class="playlist-skip gc-analytics-event" data-category="devsite-playlist: skip button"> Skip </button>

## Quiz

Test what you've learned and earn your Kotlin fundamentals badge.
[Take the quiz](https://developer.android.com/courses/quizzes/android-basics-compose-unit-2-pathway-1/android-basics-compose-unit-2-pathway-1.md.txt)