---
title: "Discussion on \"Kotlin Any, Unit and Nothing Explained Simply\" | Hashnode"
description: "Discussion on \"Kotlin Any, Unit and Nothing Explained Simply\". What Any, Unit and Nothing mean in Kotlin, how they differ from Java's Object and void, and why Android code is full of () -> Unit and UiState<Nothing>."
url: "https://hashnode.com/posts/kotlin-any-unit-nothing/6af1c4d2b6cd38c0350ec59d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Kotlin Any, Unit and Nothing Explained Simply](https://imayankkumar.hashnode.dev/kotlin-any-unit-nothing?utm_source=hashnode&utm_medium=feed)

What Any, Unit and Nothing mean in Kotlin, how they differ from Java's Object and void, and why Android code is full of () -> Unit and UiState<Nothing>.

2d ago · 8 min read · imayankkumar.hashnode.dev  
Read the article

-   [#kotlin](https://hashnode.com/tag/kotlin)
-   [#android](https://hashnode.com/tag/android)
-   [#androiddev](https://hashnode.com/tag/androiddev)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[Mayank Kumar](https://hashnode.com/@imayankkumar)

@imayankkumar · Bengaluru, India

  
[View profile](https://hashnode.com/@imayankkumar)

Senior Android Engineer | Kotlin, Android Internals, Performance Engineering & AI

I'm Mayank, an Android engineer focused on Kotlin, software architecture, performance engineering, and AI-assisted development. I write about building Android apps with AI, including the experiments that don't work.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
