Multiple choice technology web technology

What type of scriptlet code is better-suited to being factored forward into a servlet?

  1. Code that deals with logic that is common across requests.

  2. Code that deals with logic that is vendor specific.

  3. Code that deals with logic that relates to database access.

  4. Code that deals with logic that relates to client scope.

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

Code that implements logic common across multiple requests (shared business logic, validation, data processing) should be factored into servlets for reusability and maintainability. Vendor-specific logic belongs in specialized adapter layers, not general servlets. Database and client-scope logic have specific factoring patterns not directly related to request-commonality.