Tag: technology

Questions Related to technology

  1. a) Query.list()

  2. b) Query.iterate()

  3. c) Both are same

  4. d) None of the above


Correct Option: A

8.) What is the difference between select() & poll()?

  1. a) select() and poll() have no differences

  2. b) poll() is event driven while select() is not

  3. c) select() is event driven while poll() is not

  4. d) None


Correct Option: B

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) select() and poll() have no differences - This option is incorrect because select() and poll() do have differences.

Option B) poll() is event-driven while select() is not - This option is correct. The main difference between select() and poll() lies in their behavior. poll() is event-driven, meaning that it only checks for events when explicitly called. It does not block the execution of the program. On the other hand, select() is not event-driven and blocks the program's execution until an event occurs.

Option C) select() is event-driven while poll() is not - This option is incorrect. The correct statement is the opposite: poll() is event-driven while select() is not.

Option D) None - This option is incorrect because there are differences between select() and poll().

The correct answer is B) poll() is event-driven while select() is not.

  1. a) remove data from in memory

  2. b) remove from database.

  3. c) remove from sessionFactory

  4. d) None of the above.


Correct Option: B

9.) How do I `lock' a file?

  1. a) Use filelock()

  2. b) use lockfile()

  3. c) Use lockfd()

  4. d) use fcntl()


Correct Option: D

How can a whole class be mapped as immutable?

  1. a) By using the mutable="false" attribute in the class mapping.

  2. b) By using the ismutable="false" attribute in the class mapping.

  3. c) By using the ismutable="no" attribute in the class mapping.

  4. d) None


Correct Option: A
  1. a) National File System

  2. b) Network Flashmemory System

  3. c) Network File System

  4. d) Network Fault System


Correct Option: C

what does hibernate.hbm2ddl.auto create this means ?

  1. create tables automatically

  2. b) create session object automatically

  3. c) create Session Factory object automatically

  4. d) None


Correct Option: A
  1. a) Use getmemory()

  2. b) Use sysctl()

  3. c) Use freemem()

  4. d) Use malloc()


Correct Option: B

Employee emp = session.load(Employee .class);

  1. Yes

  2. b) No

  3. Cant say

  4. Both


Correct Option: B

AI Explanation

To answer this question, we need to understand the purpose and behavior of the load method in Hibernate.

The load method in Hibernate is used to load an entity object from the database based on its identifier. It returns a proxy object that is associated with the given entity class and identifier. The actual database query is not executed immediately; instead, it is deferred until the proxy object is accessed.

In the given code snippet, the load method is used to load an instance of the Employee class. Since we are only loading the object and not accessing any of its properties or methods, the actual database query is not executed yet.

Therefore, the correct answer is:

Option B) No - The code snippet only loads the Employee object using the load method but does not perform any operations on it.