Multiple choice technology web technology

How will u handle exception in struts

  1. Declarative Exception

  2. programmatic Exception

  3. both declarative and programmatic exception

  4. none of these

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

Struts supports both declarative exception handling (configured in struts-config.xml via global-exceptions and exception tags) and programmatic exception handling (using try-catch in Action classes or extending ExceptionHandler). Both approaches are valid and commonly used.