Loading, please wait...

Hibernate MCQ Quiz (Multiple Choice Questions And Answers)

Search here for MCQs

Are you preparing for the next job interviews? If yes, trust me this post will help you also we'll suggest you check out a big collection for Programming Full Forms that may help you in your interview:

List of Programming Full Forms 

16. ______object is used to create SessionFactory object in hibernate?

  • Session
  • Configuration
  • Transaction
  • Factory

17. Hibernate SessionFactory represent which level of cache?

  • Second Level
  • First Level
  • Third Level
  • Fourth Level

18. In case of Table per Concrete class, there will be three tables in the database having no relations to each other. Which are the ways to map the table?

  • By union-subclass element
  • By self-creating the table for each class
  • Both A & B
  • None of the above

19. We need to specify @Inheritance(strategy=InheritanceType.JOINED) in the parent class and @PrimaryKeyJoinColumn annotation in the subclasses.

  • True
  • False

20. What does the Session object hold?

  • First Level Cache
  • Second Level Cache
  • Both A & B
  • None of the above