- Which of the following is true about JDBC?
View Answer
Correct answer: D — All of the above
- What will be printed?
1 import java.sql.*; 2 public class EduinqJDBC { 3 public static void main(String[] args) throws Exception { 4 Connection con = DriverManager.getConnection("jdbc:h2:mem:test","sa",""); 5 Statement st = con.createStatement(); 6 st.execute("CREATE TABLE eduinq(id INT, name VARCHAR)"); 7 st.execute("INSERT INTO eduinq VALUES(1,'Portal')"); 8 ResultSet rs = st.executeQuery("SELECT name FROM eduinq"); 9 while(rs.next()) System.out.println(rs.getString(1)); 10 } 11 } View Answer
Correct answer: A — Portal
- Which of the following is true about Hibernate ORM?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JPA?
View Answer
Correct answer: D — All of the above
- What will be printed?
1 import javax.persistence.*; 2 @Entity 3 class Eduinq { 4 @Id int id; 5 String name; 6 } 7 public class Test { 8 public static void main(String[] args) { 9 System.out.println("Eduinq JPA Entity Ready"); 10 } 11 } View Answer
Correct answer: A — Eduinq JPA Entity Ready
- Which of the following is true about Transactions?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Lazy Loading in Hibernate?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Eager Loading in Hibernate?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Hibernate caching levels?
View Answer
Correct answer: D — All of the above
- What will be printed?
1 System.out.println("Eduinq Hibernate Cache Enabled"); View Answer
Correct answer: A — Eduinq Hibernate Cache Enabled
- Which of the following is true about JDBC PreparedStatement?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JPA EntityManager?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Hibernate Session?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JPA Query Language (JPQL)?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JDBC ResultSet?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Hibernate annotations?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JPA relationships?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Hibernate Criteria API?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JDBC batch processing?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JPA NamedQuery?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JDBC Savepoints?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Hibernate caching strategies?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JPA inheritance mapping?
View Answer
Correct answer: D — All of the above
- What will be printed?
1 import javax.persistence.*; 2 @Entity 3 @Inheritance(strategy=InheritanceType.SINGLE_TABLE) 4 class EduinqBase { @Id int id; } 5 @Entity 6 class EduinqChild extends EduinqBase { String name; } 7 public class Test { 8 public static void main(String[] args) { 9 System.out.println("Eduinq JPA Inheritance Ready"); 10 } 11 } View Answer
Correct answer: A — Eduinq JPA Inheritance Ready
- Which of the following is true about JPA entity lifecycle states?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Hibernate dirty checking?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Optimistic Locking?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Pessimistic Locking?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JPA @Version annotation?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JDBC transaction management?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Hibernate SessionFactory?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JPA Entity lifecycle callbacks?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JDBC Connection pooling?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Hibernate @Cache annotation?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JPA Cascade types?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JDBC CallableStatement?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Hibernate @NamedQuery?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JPA Entity states transitions?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JDBC Scrollable ResultSet?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Hibernate @Fetch annotation?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JPA @Embedded annotation?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JDBC transaction isolation levels?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Hibernate @NaturalId?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JPA @MappedSuperclass?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JDBC Metadata?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Hibernate @DynamicUpdate?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JPA Lock modes?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JDBC batch updates best practices?
View Answer
Correct answer: D — All of the above
- Which of the following is true about Hibernate best practices?
View Answer
Correct answer: D — All of the above
- Which of the following is true about JPA best practices?
View Answer
Correct answer: D — All of the above