Examveda

Which is the correct declaration of an integer array with a size of 5?

A. val arrs[5]: Int

B. val arrs = IntArray(5)

C. val arrs: Int[5]

D. val arrs = Array<Int>(5)

Answer: Option B


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.