In this short guide, we will learn how to throw a exception using throw keyword in Kotlin. Kotlin throw keyword example In the following example… [Read More]
Kotlin Nested Try-Catch Block with example
When a try catch block is present inside another try catch block then it is called nested try catch block. If any exception occurs in… [Read More]
Kotlin Multiple Catch Blocks with example
A try block can have multiple catch blocks. When we are not sure what all exceptions can occur inside the try block then it is… [Read More]
Kotlin Try Catch with example
In the last tutorial we learned what is an exception handling. In this guide we will see various examples of try catch block. We will… [Read More]
Kotlin Exception Handling with examples
Exceptions are unwanted issues that can occur at runtime of the program and terminate your program abruptly. Exception handling is a process, using which we… [Read More]
Kotlin Higher order function with example
Higher order function or higher level function can have another function as a parameter or return a function or can do both. Till now we… [Read More]
Kotlin Lambda Function with example
Lambda function is also known as anonymous function because it has no name. Parameters are in the left side of the arrow and actual code… [Read More]
Kotlin Default and Named Argument
In this guide, we will learn default and named argument that are used in Kotlin functions. Kotlin Default Argument We have already learned how a… [Read More]
Kotlin Recursion and Tail Recursion with examples
A function is called recursive function if it calls itself and this process is called recursion. How a recursive function looks like? Here the function… [Read More]
Kotlin Function with examples
A function is a block of related statements that together perform a specific task. For example lets say we have to write three lines of… [Read More]