多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

Given this fragment in a servlet: 23.if(req.isUserInRole("Admin")) { 24.// do stuff 25.} And the following fragment from the related Java EE deployment descriptor: 812. 813.Admin 814.Administrator 815. 900. 901.Admin 902.Administrator 903. What is the result?()

  • A、Line 24 can never be reached.
  • B、The deployment descriptor is NOT valid.
  • C、If line 24 executes, the user’s role will be Admin.
  • D、If line 24 executes, the user’s role will be Administrator.
  • E、If line 24 executes the user’s role will NOT be predictable.
正确答案:D
答案解析:
进入题库查看解析

微信扫一扫手机做题