October 2018
Intermediate to advanced
370 pages
9h 15m
English
There are a number of keywords that are used by Kotlin for its internal purposes and these cannot be used as variable names and function declarations. Some of the reserve words are as follows:
in, is, as, object, val, var, for, fun, interface, when
There are reserve words that Kotlin has reserved for itself, but when it comes to Java, most of Kotlin's reserved keywords are normal variables for Java. See the following example:
public static void is(){ System.out.println("is is a reserved keyword in Kotlin :-) "); }public static void var(){ System.out.println("var is a reserved keyword in Kotlin :-) ");}
var and is are normal keywords for Java but not for Kotlin. If we need to call a function with Kotlin's reserved ...
Read now
Unlock full access