Method used to check if a list is empty in Scala –

100. Method used to check if a list is empty in Scala -

  1. list.isEmpty
  2. list.isNull
  3. list.empty
  4. None of these

Answer: a) list.isEmpty

Explanation:

Scala method list.isEmpty is used to check if a list is empty.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.