首页
论坛
图书
开发资料
在线文档
网址
下载
联系我们
 新闻│Java│JavaScript│Eclipse│Eclipse 英文│J2EE│J2ME│J2SE│JSP│Netbeans│Hibernate│JBuilder│Spring│Struts
站内搜索: 请输入搜索关键词

当前页面: 开发资料首页 → Java 专题 → JSP入门实例:无刷新JSP聊天室

JSP入门实例:无刷新JSP聊天室

摘要: JSP入门实例:无刷新JSP聊天室

</td> </tr> <tr> <td height="35" valign="top" class="ArticleTeitle"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="431" height="86" align="center" valign="top">

历史上最小的XMLHttp无刷新JSP聊天室,基本上没有什么功能,此程序只为学习使用无刷新技术者使用。如用问题请与我联系:
本程序由:Qxin开发
E-Mail:lqxttl@21cn.com

考考你(26)

What will be written to the standard output when the following program is run?

class Base {

 int i;

 Base() {

  add(1);

 }

 void add(int v) {

  i += v;

 }

 void print() {

  System.out.println(i);

 }

}

class Extension extends Base {

 Extension() {

   add(2);

 }

 void add(int v) {

    i += v*2;

 }

}

public class Qd073 {

  public static void main(String args[]) {

    bogo(new Extension());

  }

  static void bogo(Base b) {

    b.add(8);

    b.print();

  }

}

a) 9

b) 18

c) 20

d) 21

e) 22 

点击查看答案 </td> <td width="253" valign="top"> </td> </tr> <tr> <td height="20" colspan="2">


</td> </tr> </table>

 


</td> </tr> <tr>


↑返回目录
前一篇: 访客留言板
后一篇: jsp2.0表达式语言学习资料

首页 | 全站 Sitemap | 联系我们 | 设为首页 | 收藏本站
版权所有 Copyright © 2006-2007, Java 编程资料牛鼻站, All rights reserved