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

Java认证考试

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

Given: 5.public class MyTagHandler extends TagSupport { 6.public int doStartTag() throws JspException { 7.try { 8.// insert code here 9.} catch(Exception ex) { /* handle exception */ } 10.return super.doStartTag(); 11.}...42. } Which code snippet, inserted at line 8,causes the value foo to be output?()

  • A、JspWriter w = pageContext.getOut();
  • B、print("foo");
  • C、JspWriter w = pageContext.getWriter();
  • D、JspWriter w = new JspWriter(pageContext.getWriter()); . w.print("foo");
正确答案:A
答案解析:
进入题库查看解析

微信扫一扫手机做题