

MCQOPTIONS
Saved Bookmarks
This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Technical Programming knowledge and support exam preparation. Choose a topic below to get started.
1. |
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 |
Answer» C. Allows to fetch only selected columns of result | |
2. |
In which file database table configuration is stored? |
A. | .dbm |
B. | .hbm |
C. | .ora |
D. | .sql |
Answer» C. .ora | |
3. |
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 |
Answer» E. | |
4. |
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 |
Answer» E. | |
5. |
Which of the following is not a state of object in Hibernate? |
A. | Attached() |
B. | Detached() |
C. | Persistent() |
D. | Transient() |
Answer» B. Detached() | |
6. |
Which of the following method is used inside session only? |
A. | merge() |
B. | update() |
C. | end() |
D. | kill() |
Answer» C. end() | |
7. |
Which of the following methods hits database always? |
A. | load() |
B. | loadDatabase() |
C. | getDatabase() |
D. | get() |
Answer» E. | |
8. |
Which of the following methods returns proxy object? |
A. | loadDatabase() |
B. | getDatabase() |
C. | load() |
D. | get() |
Answer» D. get() | |
9. |
SessionFactory is a thread-safe object. |
A. | True |
B. | False |
Answer» B. False | |
10. |
Which of the following is not a core interface of Hibernate? |
A. | Configuration |
B. | Criteria |
C. | SessionManagement |
D. | Session |
Answer» D. Session | |