Skip to content
Sharp

SQL for Java Devs · interview question

In a one-to-many relationship, how is the 'many' side typically represented in Java?

Multiple choiceEasychapter-8-curatedpremiumsql-for-java-devsjoins
Choose one answer
Answer and explanation

Correct answer

D. As a List or Set of objects.

Why

In Java, the 'many' side of a one-to-many relationship is commonly represented as a List or Set of objects to store multiple instances.

Test yourself on SQL for Java Devs

A free test with instant, explained results. No account needed.

Start free test
All SQL for Java Devs questions →