Gallery Posted by www.chennarapu.com Posted on December 25, 2013 Posted under CORE JAVA Comments Leave a comment what are the different types of sdlc models? There are various Software development models or methodologies are Waterfall model V model Incremental model RAD model Agile model Iterative model Spiral model Share this:TwitterFacebookLike Loading...
Gallery Posted by www.chennarapu.com Posted on December 22, 2013 Posted under Spring Comments Leave a comment What are the types of Dependency Injection Spring supports? There are two types of dependency injections 1. Constructor Injection 2. Setter Injection Share this:TwitterFacebookLike Loading...
Gallery Posted by www.chennarapu.com Posted on December 22, 2013 Posted under Spring Comments Leave a comment Explain Bean lifecycle in Spring framework? Bean life cycle in Spring Bean Factory Container is as follows: The spring container finds the bean’s definition from the XML file and instantiates the bean. Using the dependency injection, spring populates all of the properties as specified in the bean definition If the bean implements the BeanNameAware interface, the factory calls setBeanName () passing the bean’s ID. If the bean implements the BeanFactoryAware interface, the factory calls setBeanFactory (), passing an instance of itself. If there are any BeanPostProcessors associated with the bean, their post- ProcessBeforeInitialization () methods will be called. If an init-method is specified for the bean, it will be called. Finally, if there are any BeanPostProcessors associated with the bean, their postProcessAfterInitialization () methods will be called. Share this:TwitterFacebookLike Loading...
Gallery Posted by www.chennarapu.com Posted on December 22, 2013 Posted under Spring Comments Leave a comment What are the modes of Auto Wiring? no byName byType constructor autodirect Share this:TwitterFacebookLike Loading...
Gallery Posted by www.chennarapu.com Posted on December 22, 2013 Posted under Spring Comments Leave a comment What are ORM’s spring supports? Spring supports the following ORM’s: 1. Hibernate 2. iBatis 3. JPA (Java Persistence API) 4. TopLink 5. JDO (Java Data Objects) 6. OJB Share this:TwitterFacebookLike Loading...
Gallery Posted by www.chennarapu.com Posted on December 22, 2013 Posted under Spring Comments Leave a comment What are Bean scopes in Spring Framework? Singleton Prototype request session global session Share this:TwitterFacebookLike Loading...
Gallery Posted by www.chennarapu.com Posted on December 22, 2013 Posted under Spring Comments Leave a comment What are the types of the transaction management Spring supports? Spring Framework transaction management supports: Programmatic transaction management. Declarative transaction management. Share this:TwitterFacebookLike Loading...
Gallery Posted by www.chennarapu.com Posted on December 22, 2013 Posted under Spring Comments Leave a comment What is PreparedStatementCreator? PreparedStatementCreator: Is one of the most common used interfaces for writing data to database Has one method – createPreparedStatement(Connection) Responsible for creating a PreparedStatement. Does not need to handle SQLExceptions. Share this:TwitterFacebookLike Loading...
Gallery Posted by www.chennarapu.com Posted on December 22, 2013 Posted under Spring Comments Leave a comment What is SQLProvider? SQLProvider: Has one method – getSql() Typically implemented by PreparedStatementCreator implementers. Useful for debugging. Share this:TwitterFacebookLike Loading...
Gallery Posted by www.chennarapu.com Posted on December 22, 2013 Posted under Spring Comments Leave a comment What is RowCallbackHandler? The RowCallbackHandler interface extracts values from each row of a ResultSet. Has one method – processRow(ResultSet) Called for each row in ResultSet Typically stateful Share this:TwitterFacebookLike Loading...