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
 
Includes:
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
 
Bisac
COM051260
COM051280   
COM051210   
 
Sample from the book
(Below Questions and Answers are randomly taken from different pages of the book)
 
14: What is the flow of hibernate communication with database?
Answer:
The flow of hibernate communication with database is as follows:
a) First, load hibernate configuration file and create configuration object. Using configuration object load all hibernate mapping files.
b) Create SessionFactory from the Configuration object.
c) Create Session from the SessionFactory object.
d) Create the HQL query.
e) Run the query which retrieves list of java objects.
 
100: Explain the 2 types of IoC containers.
Answer:
The IoC container consists of the BeanFactory and ApplicationContext containers. The BeanFactory interface is capable of maintaining different resource registries and their dependencies. It enables you to read the bean definitions and create them as per the XML that contains the definition. But first you need to create a FileInputStream, FileSystemResource, ClassPathResource, or a ClassPathXmlApplicationContext which contains the Bean definition and then use a XmlBeanFactory to create a BeanFactory. The ApplicationContext container takes care of the text messages and event listeners that make the applications function according to the business logic. The ApplicationContext can overtake the BeanFactory since it contains all the functionality of the BeanFactory. Ideally, the Beanfactory is preferred when we have a lighter application such as a mobile app or an Applet.
 
144: How will you handle the singleton bean which depends on a lazy initialized bean?
Answer:
a) We can handle the singleton bean which depends on a lazy initialized bean by using “default-lazy-init” attribute in <bean> tag
b) When the singleton bean depends on lazy initialized bean, container will create a bean instance for lazy initialized bean at startup. Otherwise it will not satisfy singleton bean’s dependency and it will not be injected into the singleton bean
c) <bean id=”bean1” class=”...” default-lazy-init=”true” />
 
203: What are the types of Advice?
Answer:
The different types of Advice are:
a) Before Advice: Executes an advice before executing a join point
b) After Returning Advice: Executes an advice after executing a join point if it completes normally without an exception
c) After Throwing Advice: Executes an advice, if any exception occurs in join point
d) Around advice: Executes an advice before and after executing a join point. It will be able to choose whether to proceed to join point or stop the method execution
 
261: What are the methods in struts to validate the form data?
Answer:
The methods in struts to validate the form data are:
a) Declarative validation: Using Validator framework which uses two configuration files. (Client and Server side supported validation)
b) Programmatic validation: Using validate() method in Action Form bean and using execute() method in Action class (Server side validation)
 
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