Top 50+ Solved Hibernate MCQ Questions Answer
From 1 to 14 of 14
Q. Which of the following is not a core interface of Hibernate?
a. Configuration
b. Criteria
c. SessionManagement
d. Session
Q. Which of the following is not a core component of Hibernate?
a. JDBC
b. SessionFactory
c. Session
d. Configuration
Q. Which of the following methods returns proxy object?
a. loadDatabase()
b. getDatabase()
c. load()
d. get()
Q. Which of the following methods hits database always?
a. load()
b. loadDatabase()
c. getDatabase()
d. get()
Q. Which of the following method is used inside session only?
a. merge()
b. update()
c. end()
d. kill()
Q. Which of the following is not a state of object in Hibernate?
a. Attached()
b. Detached()
c. Persistent()
d. Transient()
Q. Which of the following is true about HQL?
a. HQL takes java objects in the same way as SQL takes tables.
b. HQL is a Object Oriented Query language
c. HQL is database independent.
d. All of the above.
Q. Which of the following is not an inheritance mapping strategies?
a. Table per hierarchy
b. Table per concrete class
c. Table per subclass
d. Table per class
Q. Which of the following is not an advantage of using Hibernate Query Language?
a. Database independent
b. Easy to write query
c. No need to learn SQL
d. Difficult to implement
Q. Which of the following is not an advantage of Hibernate Criteria API?
a. Allows to use aggregate functions
b. Cannot order the result set
c. Allows to fetch only selected columns of result
d. Can add conditions while fetching results
- 1 (current)