Thursday, 30 May 2019

What is Kotlin

Q. What is Kotlin  or Overview on Kotlin .

Ans:-
1. It needs Java Virtual Machine (JVM) to execute byte code.
2. Avoid NullPointerException.
3. Values : val : work like constant. as like final in java.
4. Variable : var : normal variable declaration
5. We can pass a function as parameter in another function.
6. We can also return another  function   from a function like returning a variable.
6.


No comments:

Post a Comment