Hibernate Quiz
Hibernate Quiz - 3

« 1 2 3 »

1. Which of following is NOT an annotation used with a class in hibernate?
a) @Entity
b) @Column
c) @Table
d) None of above

2. Java type ‘String’ is mapped to following SQL type in hibernate :
a) CHAR
b) VARCHAR
c) VARBINARY
d) CLOB

Wrong! Try again..
Wrong!
The correct answer is b) String is mapped to VARCHAR
Correct!
String is mapped to VARCHAR

3. Once hibernate creates a table for an Object we cannot add a property to the class for saving again.
a) Always True.
b) True if property size is small
c) Always False.
d) None of above
Wrong! Try again.
Wrong!
The correct answer is c) Always False. We can add a property to persistant object
Correct!
We can add a property to persistant object

4.Which is widely used in hibernate ?
a) OSCache
b) JCS
c) EHCache
d) JBoss Cache
Wrong! Try again.
Wrong!
The correct answer is c) EHCache is widely used in hibernate
Correct!
EHCache is widely used in hibernate.

<--Previous