Spring Java Interview Questions – Set 01
What is a Session? Can you share a session object between different threads Session is a light weight and a non-threadsafe object (No, you cannot share it between threads) that represents a single unit-of-work with the database. Sessions are opened by a SessionFactory and then are closed when all work is complete. Session is the … Read more