State the differences between Val and Var?

devquora
devquora

Posted On: Feb 22, 2018

 

Val: Val, which is the short form of value, is a constant and it cannot be changed once assigned.
Var: Var, which is the short form of variable, is a storage location that accepts the reassignment of values that have the same data types.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Kotlin Interview Questions

    Which type of Programming does Kotlin support?

    Which type of Programming does Kotlin support?..