A. The list scripting variable is set to the value of the request-scoped attribute called list.
B. A new List object is created and assigned to both the list scripting variable and the list page-scoped attribute.
C. A new List object is created and assigned to both the list scripting variable and the list request-scoped attribute.
D. A runtime exception is thrown.
E. A translation error occurs.
Answer: D, E
Explanation: ArrayList implements List, which cannot be instantiated (as it is an interface) and cannot be cast to a subclass type like ArrayList. The specification leaves the actual behavior undefined- such errors could result in either runtime exceptions (such as ClassCastException, InstantiationException or ClassNotFoundException) or translation errors. Regardless , certainly none of A to C will be correct.
I think the answer is only E.
When I tried it , it throws me this error :
org.apache.jasper.JasperException: /test.jsp (line: 14, column: 1) The value for the useBean class attribute java.util.List is invalid.