What is the entry point to a Kotlin program ? Give an example?
Answer / Neeraj Kumar Bora
The entry point of a Kotlin program is the 'fun main(args: Array<String>){}' function. Here's an example: `class Main { fun main(args: Array<String>) { println("Hello, World!") } }`
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between val and var?
What is the type of arguments inside a constructor?
What is the use of rangeTo() function?
How to declare volatile variable ?
What is the use of abstraction in Kotlin?
What are the modifiers that are available in kotlin?
How to declare variable in Kotlin ?
What is the equivalent of switch expression in Kotlin? How does it differ from switch?
Who created Kotlin programming language and when?
Define when expression?
What are the types of strings available in kotlin?
What are primitive data types in kotlin?