Posts by Year

2025

Scope functions in Kotlin

3 minute read

In Kotlin, let, apply, run, also, and with are extension functions that allow you to work with objects in a more concise and readable manner.

Sealed class vs Enum class in Kotlin

2 minute read

Both sealed classes and enums in Kotlin are used to represent a fixed set of types, but they serve different purposes and have distinct features.

Object and Companion Object in Kotlin

2 minute read

In Kotlin, both companion object and object classes are used to define singleton-like behavior, but they have different use cases and characteristics.

Exception Handling in Android Kotlin

4 minute read

In Android, exceptions are categorized into checked and unchecked exceptions, just like in Java, since Android is built on the Java platform (or Kotlin, whic...

Back to top ↑