Multiple choice technology programming languages

Which is correct execute method of Action class?

  1. public void execute(ActionMapping mapping, ActionForm form, HttpServletReuest reuest, HttpServletResponse response) throws IOException

  2. public ActionForward execute (ActionMapping mapping, ActionForm form, ServletReuest reuest, ServletResponse response) throws Exception

  3. public ActionForward execute (ActionMapping mapping, ActionForm form, HttpServletReuest reuest, HttpServletResponse response) throws Exception

  4. public ActionForward execute (ActionMapping mapping, ActionForm form, ServletReuest reuest, ServletResponse response) throws SevletException, IOExpection.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The standard signature of the Struts Action class execute method returns an ActionForward object and accepts ActionMapping, ActionForm, HttpServletRequest, and HttpServletResponse arguments while throwing Exception. Despite minor typographical errors in the options, this signature correctly matches the framework's design, whereas other options have incorrect return types or parameter classes.