Friday, August 22, 2014

How Prepare For An Interview


Points To Remember Before Going To Interview


Point 1 : You need to prepare all the skills mentioned in your resume.
Point 2 : Come up with the priority for all the skills that you need to prepare. If you are not sure, ask us.
Point 3 : Make a time plan based on the skills priority.
Point 4 : Go thru  Mock Interview questions so that you will get some idea what types of questions will be asked in the interview.
Point 5 : Concentrate on – What new things you learnt on that day instead of how much you learnt. Please complete the daily task which assigns to you.
Point 6 : Don’t buy the books and do daily task and complete the work as per assigned to you. If you do like that, then it will take few months for you to ready for the interview.
Point 7 : While you are preparing, keep in mind, that you need to prepare in Interview point of view only.
Point 8 : Concentrate more on basic concepts. Sometimes you will miss answering the basic questions.
Point 9 : When coming to steps, Concentrate on the main steps needed for a product or project.
Point 10 : Ask your friends to do mock interviews for you, so that you will not get tensed in the client interview.
Point 11 : Cover all the responsibilities that you mentioned in your resume. If the clients ask some points in your responsibilities then you need to tell in and out of it.
Point 12 : Take last 2 to 3 projects in your resume, and study those projects well and come up with some design/screen flow for your projects.
I mean you need to IN and OUT of your projects. If the client asks questions like tell about ur project, what is ur role in the project. Then you need to tell like – the project is about so and so. This is the flow for the project. I handled this module. Then you need to cover ur responsibilities whatever you mentioned in the resume.
Point 13 : Make sure that you are updating your skills in their newer versions.
Once you answer these type of questions, the client will get good impression on you and finally he will get the feeling that you are updating your skills.
Point 14 : Never lose confidence on you . Never get tensed. Never lose patience.
Update new skills/Refresh subject day by day without losing PATIENCE and without getting TENSED, finally you will be CONFIDENT on you that you can easily handle the interview

Thursday, August 14, 2014

Spring JDBC Module Questions


Spring-Jdbc

Advantages of spring jdbc?
           
spring internally uses connection parameters
spring opens the connection and closing the connection
spring creates statement logic by using jdbcTemplate class
spring handles the transaction
spring exception handling

DriverManagerDataSource?

The simple implementation of standard jdbc data source interface. Configuring a plain old jdbc driver via bean properties and returns new connection for every get Connection call.

this is not a actual connection pool.it does not contains connection pools. it creates a new connection for every call

it used in outside J2EE container or standard alone apps
in j2ee container, is recommended to use a jndi data source provided by the container such as “JndiObjectFactoryBean”
JndiObjectFactoryBean “it has the actual  connection pools. in real time apps we are using JndiObjectFactoryBean with data source

JdbcTemplate?

This is the central class in the jdbc core pkg.it simplifies the use of jdbc code
This class internally having the statement logic
This class excutes sql queries ,updates,initiating iteration over results and catching jdbc exceptions and translating  them to generic

QueryForMethods?

We are using these methods whenever we perform aggregate functions results and must be one row and one column results
We have  many queryFormethods
                        1. QueryForInt()
            2. queryForString()
            3. queryForObject()
            4. queryForMap()
            5. queryForList()
            6/ queryForFloat() ----etc
In real time most of the cases we use 1
These all methods are used for select operation only but not non select operation

What are the concepts we use curd operations in spring Jdbc?

1.insert/update/delete=====èjdbcTemplate.execute();

2.select with aggregate functions like count(*),max,min ---etc=====èqueryForInt/Object/Map

3.select with tables ex. select sno,sname from student=èRowMapper


 What is RowMaper?

RowMapper is an interface used to map a row with an object. while working with rowmapper interface
spring provides,statement,connection,resultset creation and closeting is done by spring
exception Handling is spring
looping and creating the list is done by spring
the implementation of this interface is available in “ColumnRowMapper”

 What is ResultSetExtracter?

It is interface
It provides similar to RowMapper interface.but it doesn’t create list object
while working with this we need to override the extractData () method
The implementation class is”RowMapperResultSetExtractor”


What is RowCallbackHandler?

It is an interface.It provides the features like RowMapper interface but it doesn’t create list object
while working with this interface we need to override the ProcessRow () method

 What is PreparedStatementCreator?

It is an interface.It is used to create preparedStatement using connection
The implementation class of PreparedStatementCreator is”SimplePreparedStatementCreator”

 What is PreparedStatementSetter?

It is an interface. Used to set the values to prepared Statement
The implementation class of this interface is “ArgPreparedStatement”     

PreparedStatementCallback?

This is an interface. The implementation is used to execute the prepared Statement

CallableStatementCreaterImpl ?

àIt is a class .it creates callable Statement   

CallableStatementCallback?

It executes the callable Statement

What is the use of batch Update?

àWhenever we want to execute multiple queries it take some time to execute so it will decrease the performance of an application.
àIf we use batch Update then to decrease the execution time of an application so it will increase the performance of an application

 ContextLoaderListener?

àIt is used to read the spring configuration file
àIt will identify the config file using”contextConfigLocation” context parameter

15. What is DAO?

The java class that contains only persistent logic and separates that logic from other logics of application is called DAO

15. DataSourceTransactionManager?
It contains the transaction logic like con.setAutoCoomit(false),con.commit()……etc to apply the transaction it excepts the data Source so we are injecting data Source using this it will get con to apply transaction

What kind of exceptions those spring DAO classes throw?

The spring’s DAO class does not throw any technology related exceptions such as SQLException. They throw exceptions which are subclasses of DataAccessException.

What is DataAccessException?
DataAccessException is a RuntimeException. This is an Unchecked Exception. The user is not forced to handle these kinds of exceptions.
 How can you configure a bean to get DataSource from JNDI?
  <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
             <property name="jndiName">
               <value>java:comp/env/jdbc/myDatasource</value>
            </property>
        </bean>
  How can you create a DataSource connection pool?
        <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
           <property name="driver">
               <value>${db.driver}</value>
           </property>
           <property name="url">
              <value>${db.url}</value>
           </property>
           <property name="username">
             <value>${db.username}</value>
           </property>
           <property name="password">
            <value>${db.password}</value>
           </property>
        </bean>
 How JDBC can be used more efficiently in spring framework?

JDBC can be used more efficiently with the help of a template class provided by spring framework called as JdbcTemplate.

  How JdbcTemplate can be used?

·         With use of Spring JDBC framework the burden of resource management and error handling is reduced a lot. So it leaves developers to write the statements and queries to get the data to and from the database.
·                 JdbcTemplate template = new JdbcTemplate(myDataSource);
A simple DAO class looks like this.
·                 public class StudentDaoJdbc implements StudentDao {
          private JdbcTemplate jdbcTemplate;
·                 public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
           this.jdbcTemplate = jdbcTemplate;
        }
        more..
        }
The configuration is shown below.
·                 <bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
           <property name="dataSource">
               <ref bean="dataSource"/>
           </property>
        </bean>
        <bean id="studentDao" class="StudentDaoJdbc">
           <property name="jdbcTemplate">
               <ref bean="jdbcTemplate"/>
           </property>
        </bean>
        <bean id="courseDao" class="CourseDaoJdbc">
           <property name="jdbcTemplate">
               <ref bean="jdbcTemplate"/>
           </property>
        </bean>


 How do you write data to backend in spring using JdbcTemplate?
The JdbcTemplate uses several of these callbacks when writing data to the database. The usefulness you will find in each of these interfaces will vary. There are two simple interfaces. One is PreparedStatementCreator and the other interface is BatchPreparedStatementSetter.

 Explain about PreparedStatementCreator?
PreparedStatementCreator is one of the most common used interfaces for writing data to database. The interface has one method createPreparedStatement().

·                 PreparedStatement createPreparedStatement(Connection conn)
        throws SQLException;
When this interface is implemented, we should create and return a PreparedStatement from the Connection argument, and the exception handling is automatically taken care off. When this interface is implemented, another interface SqlProvider is also implemented which has a method called getSql() which is used to provide sql strings to JdbcTemplate.

Explain about BatchPreparedStatementSetter?
·         If the user what to update more than one row at a shot then he can go for BatchPreparedStatementSetter.
This interface provides two methods setValues(PreparedStatement ps, int i) throws SQLException;
       
 
        int getBatchSize();
The getBatchSize() tells the JdbcTemplate class how many statements to create. And this also determines how many times setValues() will be called.

Explain about RowCallbackHandler and why it is used?
·         In order to navigate through the records we generally go for ResultSet. But spring provides an interface that handles this entire burden and leaves the user to decide what to do with each row. The interface provided by spring is RowCallbackHandler. There is a method processRow() which needs to be implemented so that it is applicable for each and everyrow.
        void processRow(java.sql.ResultSet rs);

What is JDBC abstraction and DAO module?
·         Using this module we can keep up the database code clean and simple, and prevent problems that result from a failure to close database resources. A new layer of meaningful exceptions on top of the error messages given by several database servers is bought in this module. In addition, this module uses Spring’s AOP module to provide transaction management services for objects in a Spring application.

How can u integrate spring and hibernate with and without  hibernate configuration file?
·         Without configuration file we can integrate spring and hibernate for this we need to write HiberanteUtil classes’ .from this classes we need to get the connection from database
·         With configuration file we need to configure the LocalSessionFactory bean in spring configuration file using configLocation property
·         We can integrate spring and hibernate with and without hibernate configuration file

How to integrate spring and struts?
·         We need to configure the spring configuration file in struts-config.xml with ContextLoaderPlugIn class with “contextConfiLocation”property
·         <plug-in className=”--.ContextLoaderPlugIn”>
·         <set-property property=”contextConfigLocation”value=”/WEB-INF/action-servlet.xml”/>
·         </plug-in>
What is the default spring configuration file?
·         In struts if are not giving any struts config file name in the web.xml using config init parameter then it takes struts-default.xml
·         In spring, if are not giving any spring configuration file name in the struts-config.xml using contextConfigLocation property. if we are not configuring property  it takes the by default “ActionServletName-servlet.xml”

How to delegate(forward) a struts request to spring?
·         To forward a struts request to spring we need to configure the “DelegateActionProxy” class in struts-config.xml
·         Struts-config.xml
·         <action path=”/StudentAction” type=”--. DelegateActionProxy”/>
·         Action-servlet.xml
·         <bean name=”/StudentAction” type=”--.StudentAction”/>
·         Here <action/> tag path and <bean/> name both must be same            

What is HibernateTransactionManager?
·         It is a simple java class it contains the transaction logic like session.beginTransaction(),tx.commit(),tx.rollback()……….etc

 How would you integrate Spring and Hibernate using HibernateDaoSupport?
·         This can be done through Spring’s SessionFactory called LocalSessionFactory. The steps in integration process are:

a.) Configure the Hibernate SessionFactory 
b.) Extend your DAO Implementation from HibernateDaoSupport 
c.) Wire in Transaction Support with AOP

What are object/relational mapping integration module?
Spring also supports for using of an object/relational mapping (ORM) tool over straight JDBC by providing the ORM module. Spring provide support to tie into several popular ORM frameworks, including Hibernate, JDO, and iBATIS SQL Maps. Spring’s transaction management supports each of these ORM frameworks as well as JDBC.

When to use programmatic and declarative transaction management ?
   Programmatic transaction management is usually a good idea only if you have a small number of transactional operations. 
On the other hand, if your application has numerous transactional operations, declarative transaction management is usually worthwhile. It keeps transaction management out of business logic, and is not difficult to configure.
Explain about the Spring DAO support ? 
The Data Access Object (DAO) support in Spring is aimed at making it easy to work with data access technologies like JDBC, Hibernate or JDO in a consistent way. This allows one to switch between the persistence technologies fairly easily and it also allows one to code without worrying about catching exceptions that are specific to each technology.

What are the exceptions thrown by the Spring DAO classes ? 
Spring DAO classes throw exceptions which are subclasses of DataAccessException(org.springframework.dao.DataAccessException).Spring provides a convenient translation from technology-specific exceptions like SQLException to its own exception class hierarchy with the DataAccessException as the root exception. These exceptions wrap the original exception.

What is SQLExceptionTranslator ? 
SQLExceptionTranslator, is an interface to be implemented by classes that can translate between SQLExceptions and Spring's own data-access-strategy-agnostic org.springframework.dao.DataAccessException.


What is Spring's JdbcTemplate ?
Spring's JdbcTemplate is central class to interact with a database through JDBC. JdbcTemplate provides many convenience methods for doing things such as converting database data into primitives or objects, executing prepared and callable statements, and providing custom database error handling.
JdbcTemplate template = new JdbcTemplate(myDataSource);


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.
What are ORM’s Spring supports ? 
  
 Spring supports the following ORM’s :
  • Hibernate
  • iBatis
  • JPA (Java Persistence API)
  • TopLink
  • JDO (Java Data Objects)
  • OJB
What are the ways to access Hibernate using Spring ?
   
There are two approaches to Spring’s Hibernate integration:
  • Inversion of Control with a HibernateTemplate and Callback
  • Extending HibernateDaoSupport and Applying an AOP Interceptor
24. How to integrate Spring and Hibernate using HibernateDaoSupport?
  
 Spring and Hibernate can integrate using Spring’s SessionFactory called LocalSessionFactory. The integration process is of 3 steps.
  • Configure the Hibernate SessionFactory
  • Extend your DAO Implementation from HibernateDaoSupport
  • Wire in Transaction Support with AOP
What are the various transaction manager implementations in Spring ?
1. DataSourceTransactionManager : PlatformTransactionManager implementation for single JDBC data sources. 

2. HibernateTransactionManager: PlatformTransactionManager implementation for single Hibernate session factories. 

3. JdoTransactionManager : PlatformTransactionManager implementation for single JDO persistence manager factories. 

4. JtaTransactionManager : PlatformTransactionManager implementation for JTA, i.e. J2EE container transactions. 

Spring AOP Module Questions


Spring AOP
What is AOP?
   
Aspect-oriented programming, or AOP, is a programming technique that allows programmers to modularize crosscutting concerns, or behavior that cuts across the typical divisions of responsibility, such as logging and transaction management. The core construct of AOP is the aspect, which encapsulates behaviors affecting multiple classes into reusable modules.
 How the AOP used in Spring?
   
AOP is used in the Spring Framework:To provide declarative enterprise services, especially as a replacement for EJB declarative services. The most important such service is declarative transaction management, which builds on the Spring Framework's transaction abstraction.To allow users to implement custom aspects, complementing their use of OOP with AOP.
 What do you mean by Aspect ? 
  
 A modularization of a concern that cuts across multiple objects. Transaction management is a good example of a crosscutting concern in J2EE applications. In Spring AOP, aspects are implemented using regular classes (the schema-based approach) or regular classes annotated with the @Aspect annotation (@AspectJ style).
What do you mean by JointPoint? 
A point during the execution of a program, such as the execution of a method or the handling of an exception. In Spring AOP, a join point always represents a method execution
What do you mean by Advice?
Action taken by an aspect at a particular join point. Different types of advice include "around," "before" and "after" advice. Many AOP frameworks, including Spring, model an advice as an interceptor, maintaining a chain of interceptors "around" the join point.
 What are the types of Advice? 
Types of advice:
  • Before advice: Advice that executes before a join point, but which does not have the ability to prevent execution flow proceeding to the join point (unless it throws an exception).
  • After returning advice: Advice to be executed after a join point completes normally: for example, if a method returns without throwing an exception.
  • After throwing advice: Advice to be executed if a method exits by throwing an exception.
  • After (finally) advice: Advice to be executed regardless of the means by which a join point exits (normal or exceptional return).
  • Around advice: Advice that surrounds a join point such as a method invocation. This is the most powerful kind of advice. Around advice can perform custom behavior before and after the method invocation. It is also responsible for choosing whether to proceed to the join point or to shortcut the advised method execution by returning its own return value or throwing an exception
What is an Aspect?

An aspect is the cross-cutting functionality that you are implementing. It is the aspect of your application you are modularizing. An example of an aspect is logging. Logging is something that is required throughout an application. However, because applications tend to be broken down into layers based on functionality, reusing a logging module through inheritance does not make sense. However, you can create a logging aspect and apply it throughout your application using AOP.

What is a Jointpoint?
A joinpoint is a point in the execution of the application where an aspect can be plugged in. This point could be a method being called, an exception being thrown, or even a field being modified. These are the points where your aspect’s code can be inserted into the normal flow of your application to add new behavior.

 What is an Advice?
Advice is the implementation of an aspect. It is something like telling your application of a new behavior. Generally, and advice is inserted into an application at joinpoints.

 What is a Pointcut?
A pointcut is something that defines at what joinpoints an advice should be applied. Advices can be applied at any joinpoint that is supported by the AOP framework. These Pointcuts allow you to specify where theadvice can be applied.

  What is an Introduction in AOP?
An introduction allows the user to add new methods or attributes to an existing class. This can then be introduced to an existing class without having to change the structure of the class, but give them the new behavior and state.

 What is a Target?
A target is the class that is being advised. The class can be a third party class or your own class to which you want to add your own custom behavior. By using the concepts of AOP, the target class is free to center on its major concern, unaware to any advice that is being applied.

What is a Proxy?
A proxy is an object that is created after applying advice to a target object. When you think of client objects the target object and the proxy object are the same.

What is meant by Weaving?
The process of applying aspects to a target object to create a new proxy object is called as Weaving. The aspects are woven intothe target object at the specified joinpoints.

What are the different points where weaving can be applied?
  • Compile Time
  • Classload Time
  • Runtime
88 . What are the different advice types in spring?
  • Around : Intercepts the calls to the target method
  • Before : This is called before the target method is invoked
  • After : This is called after the target method is returned
  • Throws : This is called when the target method throws and exception
  • Around : org.aopalliance.intercept.MethodInterceptor
  • Before : org.springframework.aop.BeforeAdvice
  • After : org.springframework.aop.AfterReturningAdvice
  • Throws : org.springframework.aop.ThrowsAdvice
What are the different types of AutoProxying?
  • BeanNameAutoProxyCreator
  • DefaultAdvisorAutoProxyCreator
  • Metadata autoproxyin

SpringMVC Interview Questions




Spring MVC

What is the diff b/w struts and spring?
Struts
1. Here any req goes to ActionServlet
2. Here we have action classess
3. In struts we have form
4. Here form contains the validate()method
5. In struts we have <action-mappings>
6. Here we have ActionForward
7.In struts we have execute() in action classes
8. In struts 2.0 we Result classless
Spring
1.In spring any req goes to DispatcherServlet
2.Here we have controller classes
3. Here we have javaBeans(model)
4. Here JavaBeans doesn’t contain validate()
5. Here we have Handler Mappings…….</bean>
6. Here we have ModelAndView
7.Here every controller classes having the handleRequest()
8.Here we have viewReslover and view

What are the advantages of Spring MVC over Struts MVC ?

1. There is clear separation between models, views and controllers in Spring.

2. Spring’s MVC is very versatile and flexible based on interfaces but Struts forces
            Actions and Form object into concrete inheritance.

3. Spring provides both interceptors and controllers..
            To see Spring MVC hello world example 

What is frontController?
A front controller is defined as “a controller which handles all requests for a Web Application.”

What is the front Controller in spring?
DispatcherServlet is called frontController in spring
ActionServlet is called FrontController in struts

What is DispatcherServlet?OR How DispatcerServlet works?

It is a FrontController any request must be forwared to DispatcherServlet.
This DS uses HandlerMapping to identify the our controller classes it will excute the control logic, controller will return the ModelAndView.

ModelAndView will identify view class using viewResolver. based on the MAView it will identify the jsp and finally jsp uses model to display the data

What is HandlerMapping?
It is used to identify the our controller classes

What is View Reslover?
It is used to identify the view classes and view class contains actual forwarding logic

What is the purpose of controller?
Controller are used to interact with service and dao layers

What are the controllers in spring?
We have the following controllers in spring
1. Controller
2. AbstarctController
3. MultiActionController
4. BaseCommandController
5. AbstractCommandController
6. AbstractFormController
7. SimpleFormController    
8. AbstractWizardFormController


What is MutiActionController?

If there are many similar actions then we need to write many controllers .instead of writing many controllers we can use MutiActionController we can combine many similar actions into a single controller class with many methods

Ex.
Public class StudentController extends MultiActionController
{
Public ModelAndView insert(req,res,Student student)throws Exception
{
Sop(“insert()”);
Sop(“studentNo:”+student.getStudentNo());
return new ModelAndView(“success”);
}
 Like do updateStudent()
}

What is BaseCommandController and AbsatractCommandController?

BaseCommandController
It is abstract base class.it has no more specific implementation like dataBinding,validation logics it doesn’t overrides the hadleRequestInternal() methods and no workflow
If we want to work with BaseCommandController we need to write the code for data population and validation

AbstractCommandController

It is also abstract it provides the work flow for BaseCommandController means overriding the handleRequestInternal ()
It is calling the getCommand()--------to create the command object
It is calling the bindValidate ()----------to populate() and validate the data

Explain Spring MVC framework with an example ?
 The MVC is a standard software architecture that aims to separate business logic from presentation logic, enabling the development, testing and maintenance of both isolated.
The user triggers an event through the UI (click a button on the page or something).
(2) The controller receives the event and coordinates how things will happen on the server side, i.e. the flow goes to the objects required to perform the business rule.. 

To see Spring MVC hello world example 

What is the default HandelMapping and what is the default View Reslover in spring MVC?
In spring mvc we are not giving any handlerMapping spring will take by default BeanNameUrlHandlerMapping

 In spring mvc we are not giving any view resolver spring will take by default InternalResourceViewReslover

Where  and How to implement validation in spring?
In spring ,we need implement the  validation logic in separate class.
Write a class  implement validator interface  and override the supports() and validate() methods

Where and How to implement validation in struts?
In struts ,validation is implemented in form classes.
Write a form class extend ActionForm and override validate() method(programmatic validation)

What is HandlerIntercepter?

It is used to invoke pre and post logic for controller.The advantage of this is we can write it  once and we can apply to N number of controllers
If we want to work with HandlerIntercepter we need  override the preHandle() and postHandle(),afterCompletion() methods

 How to handle Global Exception in spring mvc?

We need to use SimpleMappingExceptionReslover
If controller is not handling any Exception properly with try and catch blocks then we we will get 500 Error in the browser,user can not  understand this message
If we are configuring SimpleMappingExceptionResolver then if controller is missing any Exception still we can display proper error message to the user

 What is Controller in Spring MVC framework?
In a general way, Controller (‘c’ in mvc ) delivers access to the behavior of application which is usually defined by a service interface and acts as glue between core application and the web. It processes/interprets client data and.. 

 What is a front controller in Spring MVC ?
 A front controller is defined as “a controller which handles all requests for a Web Application.” DispatcherServlet (actually a servlet) is the front controller in Spring MVC that intercepts every request and then dispatches/forwards requests to an appropriate controller.. 

What is SimpleFormController in Spring MVC and how to use it in your web application ?

It offers you form submission support. This can help in modeling forms and populating them with model/command object returned by the controller. After filling the form, it binds the fields, validates the model/command object, and passes the object back to the controller so that the controller can take appropriate action.. 

What is AbstractController in Spring MVC ?

AbstractController : It provides a basic infrastructure and all of Spring’s Controller inherit from AbstractController. It offers caching support, setting of the mimetype etc. It has an abstract method ‘handleRequestInternal(HttpServletRequest, HttpServletResponse)’ which should be overridden by subclass.. 

 What is ParameterizableViewController in Spring MVC ?

ParameterizableViewController : ParameterizableViewController is one of the concrete Spring’s Controller. This controller returns a view name specified in Spring configuration xml file thus eliminates the need of hard coding view name in the controller class as in case of AbstractController.. 

 Why to override formBackingObject(HttpServletRequest request) method in Spring MVC?

You should override formBackingObject(HttpServletRequest request) if you want to provide view with model object data so that view can be initialized with some default values e.g. Consider in your form view.. 

What is the use of overriding referenceData(HttpServletReques) in Spring MVC ?
Overridden referenceData() method is used to provide some additional information to the formView (fillForm.jsp) to construct and display the view e.g.
In your form view you want to give various options to user say in the form of checkboxes and user can select multiple options. For this You can create multiple checkboxes in your view and corresponding multiple instance variables in your command/model object.. 

When and how to use MultiActionController in Spring MVC ?

MultiActionController supports the aggregation of multiple request-handling methods into one controller, so allows you to group related functionality together. It is capable of mapping requests to method names and then invoking the correct method to handle a particular request… 

 Which are the different method name resolvers in MultiActionController ?  

MultiActionController needs some way to resolve which method to call when handling an incoming http request. Spring provides MethodNameResolver interface to achieve this. The MultiActionController class provides a property named ‘methodNameResolver’ so that you can inject a MethodNameResolver…