A

Admin • 833.24K Points
Coach

Q. Which function is used to create an empty list in Kotlin?

  • (A) empty()
  • (B) emptyList()
  • (C) listOf()
  • (D) nullList()
  • Correct Answer - Option(B)
  • Views: 23
  • Filed under category Kotlin
  • Hashtags:

Explanation by: Admin

Kotlin provides emptyList() to create an immutable empty list.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.