Kotlin : Basic syntax with Examples

Posted on

Basic Syntax of Kotlin with Example listed below Val and Var val : This is used to define constant field and final variable. if we define variable with final then we can assign it value again. this is immutable┬átype of variable var : This is general type of variable. we can change/ assign a new […]