Kotlin when Expression

when is the replacement of the switch operator of java. Block of code will executed when some condition is satisfied, also when expression can returns value using braces we can…

Comments Off on Kotlin when Expression

Kotlin Control Flow

Kotlin Control Flow Statements It is used to control the flow of program structure, following types of expression in kotlin. if Expression if-else expression if-else if-else ladder expression nested if…

Comments Off on Kotlin Control Flow

Kotlin Operator

Operators are symbols that perform mathematical or logical operations. It used to perform operations on values and variables. Types of Operators in Kotlin  Arithmetic operator Relation operator Assignment operator Unary operator…

Comments Off on Kotlin Operator

Kotlin Input Output

Kotlin input output operations performed to flow sequence of bytes or byte streams from input device like keyboard to main memory  and from the main memory to output device like…

Comments Off on Kotlin Input Output

Kotlin Comments

Comments are ignored by the kotlin compiler. comment is a programmer readable explanation about source code that makes source code easier to understand by programmers. Single-line Comments : Kotlin comments…

Comments Off on Kotlin Comments

Kotlin Type Conversion

it's also called Type casting , Type Conversion is to convert one data type variable into another data type kotlin doesn't support implicit type conversion (small to large data type). java…

0 Comments

Kotlin Data Types

It specifies the type of data variable can store like data could be string, integer, numeric, boolean, float. In kotlin all data types behave as object in java need to…

0 Comments

kotlin var vs val

In Kotlin, var and val Both keywords are used for declaring variables. var - Variable declare with var keywords are Mutable Variables, value of variable can be changed fun main()…

0 Comments

Kotlin Variable

Variable is Container to store values, every variable should be declared before using otherwise it gives syntax errors. variable name should be declared using lowerCamelCase. Variable declaration With initialization: If variable…

0 Comments

Hello World program in Kotlin

To compile and run a Kotlin program, you'll need to follow these general steps. 1. Write Your Kotlin Code: Open notepad or VSCode and Save the code in a file…

0 Comments