🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: UML Class Diagrams: all 10 questions

Quiz: UML Class Diagrams · Question 8 of 10

Multiplicity 0.. on a field is usually written in Java as:

Multiplicity 0..* on a field is usually written in Java as:

  1. A.A single field that may be null
  2. B.An int counter
  3. C.A collection such as List<Course>
  4. D.A static field
Answer & explanation

Correct answer: A collection such as List<Course>

Any number of objects needs a collection.

Can you get the rest right without peeking?

Take the timed Quiz: UML Class Diagrams quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →