Hibernate, Spring & Struts Interview Questions

4.5 of 5 Stars!

Price: $19.95
Sale: $15.76
Save: 21% off


Qty. 
+-

Hibernate, Spring & Struts Interview Questions You'll Most Likely Be Asked is a perfect companion to stand ahead above the rest in today’s competitive job market. Rather than going through comprehensive, textbook-sized reference guides, this book includes only the information required immediately for job search to build an IT career. This book puts the interviewee in the driver's seat and helps them steer their way to impress the interviewer.

 

Table of Contents

Hibernate
1. Hibernate Interfaces
2. Hibernate Configuration
3. Criteria Queries
4. Persistent Classes
5. Object States
6. O/R Mapping
7. Hibernate Inheritance
8. Hibernate Caches
9. Hibernate Interceptor and Filters
Spring
10. Spring Modules
11. IoC Container
12. Beans
13. Dependency Injection
14. Importing XML Resource
15. Idref Element
16. Bean Collaborators
17. Collections
18. Depends-on Attribute
19. Lazy Initialized Bean
20. Autowiring
21. Bean Scopes
22. Bean Lifecycle Methods
23. Inheritance (Normal Inheritance)
24 Inheritance with Abstract 
25. Annotations Based Configuration 
26. ApplicationContext
27. Spring and Hibernate Integration
28. Spring AOP
Struts
29. Configuration
30. Main Classes (Action classes and ActionForms)
31. Exception Handling
32. Validation and Validator Framework
33. Logic Tags
34. Internationalization / Localization
35. Integrate with other Frameworks
36. Action and ActionForms
HR Questions
Index

The following is included in this book:

(a) 300 Hibernate, Spring & Struts Interview Questions, Answers and proven strategies for getting hired as an IT professional

(b) Dozens of examples to respond to interview questions

(c) 78 HR Questions with Answers and proven strategies to give specific, impressive, answers that help nail the interviews

(d) 2 Aptitude Tests download available on  www.vibrantpublishers.com

Sample from the book

(Below Questions and Answers are randomly taken from different pages of the book)

41: What is the difference between the Transient and Detached states?

Answer:

In Hibernate, an object is in the transient state before it is attached to a session. A transient object is not connected to a session or a database. It still holds the value which may be written into the database when the session is established and the transaction is committed. Otherwise, it may lose its value when overwritten or be garbage collected. An object is in the Detached state when the session is closed. The values are already written to the database and the transaction is committed and the session is closed. But the database values may change since the last session was closed and hence, the detached object would have become stale. But it can reattach later to another session and become persistent.

 

42: What are the types of instance/object states?

Answer:

The types of instance/object states are:

a) Persistent: Data in sync with session object and database

b) Transient: Not connected with session and not sync with database

c) Detached: Data not in sync with session and database. Previously persistent and currently not associated with any session. For instance, Data used to be persistent however appropriate session was closed and is waiting for another session to make the data sync with database

 

43: When does an object come to detached state?

Answer:

a) When the session gets closed, an object becomes detached

b) If the data is modified after closing the session, the changes do not have any effect in the database meaning that it will not be in sync with the database

Session sess1 = sessionFactory1.openSession();

User u = sess1.get(User.class, userId);

session1.close();// Object is detached

u.setUname(“shobhana”);// Modify the data

Session sess2 = sessionFactory1.openSession();

Transaction tx1 = sess2.beginTransaction();

sess2.update(u); // Object is re-attached

tx1.commit;

sess2.close();

 

44: How would you reattach the object to the session when the same object has already been loaded into the session?

Answer:

We could reattach the object to the session when the same object has already been loaded into the session by invoking session.merge() method.

TAGS
Hibernate Interfaces, Hibernate Configuration, Hibernate Criteria Queries, Hibernate Persistent Classes, Hibernate Object States, Hibernate O/R Mapping, Hibernate Inheritance, Hibernate Caches, Hibernate Interceptor and Filters, Spring Modules, Spring IoC Container, Spring Beans, Spring Dependency Injection, Spring Importing XML Resource, Spring  Idref Element, Spring Bean Collaborators, Spring Collections, Spring Depends-on Attribute, Spring Lazy Initialized Bean, Spring Autowiring, Spring Bean Scopes, Spring Bean Lifecycle Methods, Spring Inheritance (Normal Inheritance), Spring Inheritance with Abstract , Spring Annotations Based Configuration , Spring ApplicationContext, Spring and Hibernate Integration, Spring AOP, Struts Configuration, Struts Main Classes (Action classes and ActionForms), Struts Exception Handling, , Struts Validation and Validator Framework, Struts Logic Tags, , Struts Internationalization / Localization, Struts Integrate with other Frameworks, Struts Action and ActionForms


BISAC
COM051260
COM051280   
COM051210