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 MoreSealed 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 MoreNull 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 MoreLateInitVsLazy
In Kotlin we have to initialise variable with a value when we declare a variable or we need to assign null.
Read Moreconst 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