← 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:
- A.A single field that may be null
- B.An int counter
- C.A collection such as
List<Course> - 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 →