All Posts Kotlin

  • Home /
  • All Posts kotlin
When block

A typical switch is essentially just a declaration that can substitute a series of if / else statements that are underlying.

Read More
Difference between val and var

Let’s learn about the actual difference between val and var.

Read More
Sealed class

Sealed classes are used for representing restricted class hierarchies, when a value can have one of the types from a limited set, but cannot have any other type.

Read More
Null safety

Kotlin’s type system is aimed at eliminating the code’s risk of null reference because it is a very common and easily produceable error.

Read More
LateInitVsLazy

In Kotlin we have to initialise variable with a value when we declare a variable or we need to assign null.

Read More
const keyword in Kotlin

Let’s learn about the const keyword in kotlin Variables identified with the const keyword are immutable, as is val.

Read More