nerdexam
Oracle

1Z0-850 · Question #60

Why should package names in Java be unique?

The correct answer is D. to avoid class name conflicts if two development groups use the same package and class names. See the full explanation below for the reasoning.

Question

Why should package names in Java be unique?

Options

  • Ato programmatically declare specific ownership of classes in the package
  • Bto allow classes in the package to be accessed by classes outside of that package
  • Cto provide the Internet location from which the package can be downloaded
  • Dto avoid class name conflicts if two development groups use the same package and class names

How the community answered

(29 responses)
  • A
    3% (1)
  • B
    14% (4)
  • C
    3% (1)
  • D
    79% (23)

Community Discussion

No community discussion yet for this question.

Full 1Z0-850 Practice