单项选择题
Given an HttpServletRequest request, which retrieves an object of type Account with an Id of “account”?()
A. Account account = request.get Resource(”account”):
B. Account account = request.get Attribute (“account”):
C. Account account = request.get Parameter (account”):
D. Account account = (Account)request.getResource (“account”):
E. Account account = (Account) request.get Attribute (“account”):
F. Account account = (Account) request.get Paramter (“account”):
相关考题
-
单项选择题
What is the result?()
A. Compilation succeeds.
B. An error at line 2 cause compilation to fail.
C. An error at line 9 cause compilation to fail.
D. An error at line 10 cause compilation to fail.
E. An error at line 11 cause compilation to fail. -
单项选择题
What is the result?()
A. The program runs and prints “Hello”
B. An error causes compilation to fail.
C. The program runs and prints “Hello world!”.
D. The program runs but aborts with an exception. -
单项选择题
What is the result?()
A. foo has the value””
B. foo has the value null.
C. An exception is thrown.
D. The code will not compile.
