Hibernate interview questions

Hibernate interview questions

Take as many assements as you can to improve your validate your skill rating

Total Questions: 15

1. What ORM stands for?

Correct Answer is : Object Relational Mapping

2. SessionFactory is a thread-safe object.

Correct Answer is : TRUE

3. Which of the following is true about Transaction object in hibernate?

Correct Answer is : A Transaction represents a unit of work with the database.

4. Which method is used to remove a persistent instance from the datastore?

Correct Answer is : Session.delete()

5. Which of the following elements is used to define specific mappings from a Java classes to the database tables?

Correct Answer is : class

6. Which element of hbm.xml automatically generate the primary key values?

Correct Answer is : generator

7. Which of the following is not a core interface of Hibernate?

Correct Answer is : SessionManagement

8. Which of the following methods returns proxy object?

Correct Answer is : load()

9. Which of the following methods hits database always?

Correct Answer is : get()

10. Which of the following method is used inside session only?

Correct Answer is : update()

11. Which of the following is not a state of object in Hibernate?

Correct Answer is : Attached()

12. Which of the following is not an inheritance mapping strategies?

Correct Answer is : Table per class

13. Which of the following is not an advantage of using Hibernate Query Language?

Correct Answer is : Difficult to implement

14. In which file database table configuration is stored?

Correct Answer is : .hbm

15. Which of the following is not an advantage of Hibernate Criteria API?

Correct Answer is : Cannot order the result set

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon