试题详情
- 单项选择题 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");
关注下方微信公众号,在线模考后查看

热门试题