Multiple choice technology architecture

This class is a thread-safe global object, instantiated once in Hibernate

  1. SessionFactory

  2. Session

  3. Transaction

  4. None of the Above.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

SessionFactory is a thread-safe, immutable object that is created once during application initialization and shared across all threads. It is heavyweight and maintains the configuration, mappings, and connection pool. Session objects are not thread-safe and should be created per thread/request.