Open notepad or VSCode and create a file firstProgram.kt and wite the following code. To compile the program in the command-line compiler, go to destination folder and To Run the program to see the output in a command-line compiler.
What is kotlin? Kotlin is a statically typed, object-oriented language and general-purpose programming language It runs on JVM. It’s compatible with Java that means java code can be used in kotlin Why Use Kotlin? Features of Kotlin if try to access without smart cast it gives compile time error Applications of Kotlin language: