BeginnersBook

  • Home
  • Java
    • Java OOPs
    • Java Collections
    • Java Examples
  • C
    • C Examples
  • C++
    • C++ Examples
  • DBMS
  • Computer Network
  • Python
    • Python Examples
  • More…
    • jQuery
    • Kotlin
    • WordPress
    • SEO
    • JSON
    • JSP
    • JSTL
    • Servlet
    • MongoDB
    • XML
    • Perl

Kotlin throw keyword with example

Last Updated: March 7, 2019 by Chaitanya Singh | Filed Under: Kotlin Tutorial

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

Last Updated: March 7, 2019 by Chaitanya Singh | Filed Under: Kotlin Tutorial

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

Last Updated: March 7, 2019 by Chaitanya Singh | Filed Under: Kotlin Tutorial

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

Last Updated: March 6, 2019 by Chaitanya Singh | Filed Under: Kotlin Tutorial

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

Last Updated: March 6, 2019 by Chaitanya Singh | Filed Under: Kotlin Tutorial

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

Last Updated: March 6, 2019 by Chaitanya Singh | Filed Under: Kotlin Tutorial

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

Last Updated: March 6, 2019 by Chaitanya Singh | Filed Under: Kotlin Tutorial

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

Last Updated: March 3, 2019 by Chaitanya Singh | Filed Under: Kotlin Tutorial

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

Last Updated: March 2, 2019 by Chaitanya Singh | Filed Under: Kotlin Tutorial

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

Last Updated: March 2, 2019 by Chaitanya Singh | Filed Under: Kotlin Tutorial

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]

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next Page »

Kotlin Tutorial

  • Kotlin Tutorial
  • Kotlin in Eclipse IDE
  • Kotlin in IntelliJ
  • First Kotlin Program
  • Kotlin Keywords
  • Kotlin Variables
  • Kotlin Type Casting
  • Kotlin operators
  • Kotlin Input/Output
  • Kotlin Comments

Kotlin String

  • Kotlin String

Kotlin Array

  • Kotlin Array
  • Kotlin Range

Control Flow

  • Kotlin if expression
  • Kotlin when expression
  • Kotlin for loop
  • Kotlin while loop
  • Kotlin do-while loop
  • Kotlin continue
  • Kotlin break

Kotlin Function

  • Kotlin Function
  • Kotlin Recursion
  • Kotlin default and named arguments
  • Lambda functions
  • Higher Order Function

Exception Handling

  • Exception Handling
  • Kotlin try catch
  • Multiple catch blocks
  • Nested try catch
  • Throw keyword
  • Kotlin try expression

Kotlin OOP

  • Class and Objects
  • Kotlin Constructors
  • Kotlin Inheritance
  • Visibility Modifiers
  • Kotlin abstract class
  • Kotlin Interfaces
  • Nested and Inner Class
  • Kotlin Data Class
  • Kotlin Sealed Class

Copyright © 2012 – 2026 BeginnersBook . Privacy Policy . Sitemap