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.
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.
A loop is a programming structure that repeats a sequence of instructions until a specific condition is met. To replace the most common use cases of such loopsKotlin uses the concepts of ranges.
This article helps you understand how kotlin is interoperable with java programming language. Learn about kotlin compiler, java virtual machine and kotlin as multiplatform.