Examveda

What does the !! operator do?

A. It converts any value to a non-null type and throws anexception if the value is in fact null

B. It compares two values for identity rather than equality

C. It returns the left-hand operand if the operand is not null: otherwise it returns the right have operand

D. It's the modulo operator in Kotlin, similar to Java's %

Answer: Option A


This Question Belongs to Computer Science >> Kotlin Program

Join The Discussion

Related Questions on Kotlin Program

What is Kotlin?

A. A new version of Java.

B. A JavaScript framework.

C. A statically-typed programming language for the JVM, Android, and browser.

D. A database management system.