Hibernate/Hibernate - Java (MCQ) questions and answers Sample Test,Sample questions

Question:
 Which type of instances retain no data or conversational state for a specific client?

1.Message-Driven Bean

2.Session Bean

3.Entity Bean

4.None of the above

Posted Date:-2021-11-01 18:56:48


Question:
 Which type of instances retain no data or conversational state for a specific client?

1.Message-Driven Bean

2.Session Bean

3.Entity Bean

4.None of the above

Posted Date:-2021-11-01 18:58:36


Question:
Abbreviate the term HQL?

1.Hibernate Queue Language

2.Hibernate Query Language

3.Hipher Query Language

4.None of the above

Posted Date:-2021-11-01 18:56:48


Question:
Abbreviate the term HQL?

1.Hibernate Queue Language

2.Hibernate Query Language

3.Hipher Query Language

4.None of the above

Posted Date:-2021-11-01 18:58:36


Question:
Hibernate is an?

1.Open Source

2.Lightweight

3.ORM

4.All mentioned above

Posted Date:-2021-11-01 18:56:48


Question:
Hibernate is an?

1.Open Source

2.Lightweight

3.ORM

4.All mentioned above

Posted Date:-2021-11-01 18:58:36


Question:
How many layers are available in Hibernate architecture?

1.3

2.4

3.5

4.2

Posted Date:-2021-11-01 18:56:48


Question:
How many layers are available in Hibernate architecture?

1.3

2.4

3.5

4.2

Posted Date:-2021-11-01 18:58:36


Question:
How many types of session beans are available in EJB?

1.2

2.3

3.4

4.5

Posted Date:-2021-11-01 18:56:48


Question:
How many types of session beans are available in EJB?

1.2

2.3

3.4

4.5

Posted Date:-2021-11-01 18:58:36


Question:
In case of Table per Concrete class there will be three tables in the database having no relations to each other. Which are the ways to map the table?

1.By union-subclass element b.

2.By self-creating the table for each class

3. Both A & B

4.None of the above

Posted Date:-2021-11-01 18:56:48


Question:
In case of Table per Concrete class there will be three tables in the database having no relations to each other. Which are the ways to map the table?

1.By union-subclass element b.

2.By self-creating the table for each class

3. Both A & B

4.None of the above

Posted Date:-2021-11-01 18:58:36


Question:
In the elements of Hibernate architecture is a factory of session and client of ConnectionProvider It holds the second level cache (optional) of data is _____.

1.Session

2.SessionFactory

3.Transaction

4.ConnectionProvider

Posted Date:-2021-11-01 18:56:48


Question:
In the elements of Hibernate architecture is a factory of session and client of ConnectionProvider It holds the second level cache (optional) of data is _____.

1.Session

2.SessionFactory

3.Transaction

4.ConnectionProvider

Posted Date:-2021-11-01 18:58:36


Question:
What does the Session object hold?

1.First Level Cache

2. Second Level Cache

3. Both A & B

4.None of the above

Posted Date:-2021-11-01 18:56:48


Question:
What does the Session object hold?

1.First Level Cache

2. Second Level Cache

3. Both A & B

4.None of the above

Posted Date:-2021-11-01 18:58:36


Question:
Which method is easy for a java programmer to add a criteria?

1.HCQL

2.HQL

3.SQL

4.None of the above

Posted Date:-2021-11-01 18:56:48


Question:
Which method is easy for a java programmer to add a criteria?

1.HCQL

2.HQL

3.SQL

4.None of the above

Posted Date:-2021-11-01 18:58:36


Question:
Which middleware services are provided by EJB?

1.Security

2. Transaction Management

3.Both A & B

4.None of the above

Posted Date:-2021-11-01 18:56:48


Question:
Which middleware services are provided by EJB?

1.Security

2. Transaction Management

3.Both A & B

4.None of the above

Posted Date:-2021-11-01 18:58:36


Question:
Which of these simplifies an Object Relational Mapping tool?

1.Data creation

2.Data manipulation

3.Data access

4.All mentioned above

Posted Date:-2021-11-01 18:56:48


Question:
Which of these simplifies an Object Relational Mapping tool?

1.Data creation

2.Data manipulation

3.Data access

4.All mentioned above

Posted Date:-2021-11-01 18:58:36


Question:
Which server-side component is required to be deployed on the server?

1.EJB

2.RMI

3.Both A & B

4.None of the above

Posted Date:-2021-11-01 18:56:48


Question:
Which server-side component is required to be deployed on the server?

1.EJB

2.RMI

3.Both A & B

4.None of the above

Posted Date:-2021-11-01 18:58:36


Question:
Which session bean does the conversational state between multiple method calls is not maintained by the container?

1.Stateful Session Bean

2.Stateless Session Bean

3. Singleton Session Bean

4.None of the above

Posted Date:-2021-11-01 18:56:48


Question:
Which session bean does the conversational state between multiple method calls is not maintained by the container?

1.Stateful Session Bean

2.Stateless Session Bean

3. Singleton Session Bean

4.None of the above

Posted Date:-2021-11-01 18:58:36


Question:
Which ways are used by the Log4j and Logback frameworks in hibernate framework to support logging?

1.By log4j.xml file

2.By log4j.properties

3.Both A & B

4.None of the above

Posted Date:-2021-11-01 18:56:48


Question:
Which ways are used by the Log4j and Logback frameworks in hibernate framework to support logging?

1.By log4j.xml file

2.By log4j.properties

3.Both A & B

4.None of the above

Posted Date:-2021-11-01 18:58:36


More MCQS

  1. Hibernate - Java (MCQ) questions and answers
  2. Hibernate Mcq Set 1
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!