Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which package the core collection interfaces and classes live in - which of the following is true?

  • A.java.collections
  • B.java.io
  • C.java.util
  • D.java.lang

Answer: C

List, Set, Map and their implementations are all in java.util, so they need an explicit import unlike the java.lang types. The concurrent variants sit below it in java.util.concurrent, and the atomic classes below that again.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.