what is kotlin Kotlin Syntax:
Kotlin is a programming language introduced by JetBrains in 2011, the official designer of the most intelligent Java IDE, named Intellij IDEA. This is a strongly statically typed general-purpose programming language that runs on JVM. In 2017, Google announced Kotlin is an official language for android development. Kotlin is an open-source programming language that combines object-oriented programming and functional features into a unique platform. The content is divided into various chapters that contain related topics with simple and useful examples.
What is the syntax of Kotlin?
This function is used to execute code. Any code inside the main() function's curly brackets {} will be executed. For example, the println() function is inside the main() function, meaning that this will be executed. The println() function is used to output/print text, and in our example it will output "Hello World".
In the previous chapter, we created a Kotlin file called Main.kt, and we used the following code to print "Hello World" to the screen:
fun main() {
println("Hello World")
}
No comments:
Post a Comment