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…
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…
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 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…
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…
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…
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()…
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…
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…
What is kotlin? Kotlin is a modern statically-typed, object-oriented language and general-purpose programming language It runs on JVM. It's compatible with Java that means java code and librraries can be…