Closures → In java 8, we cannot mutate (change) values of an outside variable inside lambdas but in KOTLIN we can change the…
String Interpolation or String Templates:
“lateinit” Keyword ->
Let’s assume you want to define your age in Kotlin, you can define it like this below:
We can call the java function from kotlin and the kotlin function from java and can have JAVA and KOTLIN files within the same application.
Named Parameters →
Kotlin Ranges are useful in Kotlin loops
val r1 = 1..5 // This range contains the number 1,2,3,4,5val r2 = 5 downTo 1 // This range contains the number 5,4,3,2,1 val r3 = 5 downTo 1 step 2 //This range contains the number 5, 3, 1 that means it will move by…