Multiple choice technology web technology

Which of the following statements is true about the scope of ‘application’ in JSP ?

  1. Objects with application scope are accessible from pages processing requests that are in the same application as they one in which they were created.

  2. All references to the object shall be released when the runtime environment reclaims the ServletContext.

  3. Objects with application scope can be defined (and reached) from pages that are not session-aware

  4. References to objects with application scope are stored in the application object associated with a page activation

Reveal answer Fill a bubble to check yourself
A,B,C,D Correct answer
Explanation

All four statements correctly describe application scope in JSP. Objects with application scope are accessible across the entire application (all requests/sessions), persist until the ServletContext is destroyed/reclaimed, can be accessed from non-session-aware pages, and are stored in the implicit application object.