Which Hibernate object is thread-safe and usually created once per application?
Practice this question from Quiz: Hibernate ORM, with options and an explanation.
Question
Which Hibernate object is thread-safe and usually created once per application?
Option A — Correct answer
SessionFactory
SessionFactory is expensive and thread-safe; Session is short-lived and not thread-safe.
Option B
Session
Option C
Transaction
Option D
ResultSet