S

Satya • 3.38K Points
Extraordinary

Q. Which method is used to open a Hibernate session?

  • (A) getSession()
  • (B) openSession()
  • (C) createSession()
  • (D) startSession()
  • Correct Answer - Option(B)
  • Views: 15
  • Filed under category Hibernate
  • Hashtags:

Explanation by: Satya

openSession() is used to obtain a new Session object from SessionFactory.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.