Featured image for sets in kotlin article

Set in kotlin

Set is a generic unordered collection of elements that does not support duplicate elements. Null elements are also unique. A set contain only one null. Kotlin distinguishes between read-only and mutable sets.

Featured image for article exceptions in kotlin

Exceptions in kotlin

An exception is an unwanted or unexpected event, which occurs during the execution of a program. In Kotlin, all exception classes are descendants of class Throwable. If exceptions are not handled, then It will throw an exception and will stop the execution of program.