Kotlin - Variables and Type System
Which of the following is the correct syntax to check if
obj is NOT an Int in Kotlin?obj is NOT an Int in Kotlin?is operator!is to check if an object is NOT a type.if (obj !is Int) is correct; is! is invalid syntax.!is to check NOT a type [OK]is! instead of !is15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions