Hibernate Objective Questions and Answers

Master Hibernate fundamentals with carefully curated multiple-choice questions covering Session lifecycle, ORM concepts, caching, dirty checking, configuration, logging, and mapping strategies.

Practice Hibernate MCQs with Detailed Explanations

Answer at least 12 questions to submit.

1.
What does the Session object hold?
2.
Which ways are used by the Log4j and Logback frameworks in hibernate framework to support logging?
3.
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?
4.
Which of these simplifies an Object Relational Mapping tool?
5.
What is dirty checking in Hibernate?
6.
What does session.evict() method do?
7.
Which statement is correct?
8.
what does hibernate.hbm2ddl.auto create this means?
9.
Is Hibernate Session threadsafe?
10.
How can you make a property be read from the database but not modified in anyway?
11.
which 2nd level cache is better in hibernate?
12.
In the elements of Hibernate architecture is a factory of session and client of ConnectionProvider,It holds second level cache (optional) of data?
13.
Which of the following are most common configuration methods of Hibernate Configuation
14.
Which of the following is FALSE about Session in hibernate?
15.
There are core interfaces are used in just about every Hibernate application. Using these interfaces, you can store and retrieve persistent objects and control transactions? A. Configuration interface B. Session interface C. Query and Criteria interfaces D. User Interface E. Configuration interface
16.
Which of the following is not a Session method?
17.
Which of the following is NOT a best practice for defining your Hibernate persistent classes?
Answered: 0 / 17