...

/

Quiz: Nullability

Quiz: Nullability

Test your understanding of the concepts discussed in the Nullability chapter.

We'll cover the following...
Technical Quiz
1.

What is the output of the following Kotlin program?

fun main() {
   var a: String? = null
   println(a?.length)
}
A.

null

B.

0

C.

NullPointerException

D.

UninitializedPropertyAccessException


1 / 5
...