在J2EE中,test.jsp文件如下:<%{%><% buffer.append("ABC");%><%}%> buffer is <%=buffer%>运行时,将发生_______ o
A. 编译期错误
B. 运行期错误
C. 运行后,浏览器上显示:buffer is null
D. 运行后,浏览器上显示:buffer is ABC
哪个关键宇可以抛出异常?
A. transient
B. finally
C. throw
D. static
设Derived类为Base类的子类,则如下对象的创建语句中哪些是错误的( )
A. Base obj = new Derived();
B. Derived obj = new Base();
C. Base obj = new Base();
Derived obj = new Derived();
在JSP页面中有如下Java代码,一共存在__________ 处错误在〕SP页面中有如下Java代码:<% String userName= (StringJsession.getParameterC'userName");if(userName==null)(%>您尚未登录!<%)else(%>欢迎您,<%=userName %><%}%>
A. 0
B. 1
C. 2
D. 3