楼主: omencathay

[精华] Think in java读书笔记

[复制链接]
论坛徽章:
0
91#
发表于 2003-8-1 17:54 | 只看该作者
I have read the seventh just now,
and decide to stop  learning next chapter about  a week,
and start to exercise from one to seven so that master it

使用道具 举报

回复
论坛徽章:
3
授权会员
日期:2005-10-30 17:05:332014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:11
92#
发表于 2003-8-2 01:48 | 只看该作者
最初由 yining 发布
[B]

看不懂。不过,每一种语言都有它的长处和短处,没有一种语言是万能的。 [/B]


Indeed, however, I think most people use java for network programming. Of course, that is its advantage.

使用道具 举报

回复
论坛徽章:
70
三菱
日期:2014-01-17 10:00:292014年世界杯参赛球队: 智利
日期:2014-06-05 11:54:32马上加薪
日期:2014-04-07 17:03:21马上有钱
日期:2014-02-25 21:39:36马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有车
日期:2014-02-18 16:41:11
93#
发表于 2003-8-3 21:27 | 只看该作者
找到了侯捷的翻译,偶不翻了。

使用道具 举报

回复
论坛徽章:
1
会员2006贡献徽章
日期:2006-04-17 13:46:34
94#
发表于 2003-8-6 09:46 | 只看该作者

关于初始化过程

tij上的例子,看看下面的程序输出结果是什么
偶觉得这个例子很不错

class Insect {
  int i = 9;
  int j;
  Insect() {
    prt("i = " + i + ", j = " + j);
    j = 39;
  }
  static int x1 =
    prt("static Insect.x1 initialized";
  static int prt(String s) {
    System.out.println(s);
    return 47;
  }
}

public class Beetle extends Insect {
  int k = prt("Beetle.k initialized";
  Beetle() {
    prt("k = " + k);
    prt("j = " + j);
  }
  static int x2 =
    prt("static Beetle.x2 initialized";
  public static void main(String[] args) {
    prt("Beetle constructor";
    Beetle b = new Beetle();
  }
}


答案
static Insect.x1 initialized
static Beetle.x2 initialized
Beetle constructor
i = 9, j = 0
Beetle.k initialized
k = 47
j = 39

使用道具 举报

回复
论坛徽章:
1
会员2006贡献徽章
日期:2006-04-17 13:46:34
95#
发表于 2003-8-6 11:39 | 只看该作者

看tij关于final的一点心得

原文:
With a primitive, final makes the value a constant, but with an object reference, final makes the reference a constant.

用final修饰原声类型(primitive type)变量,变量的值为常量
修饰对象类型(object reference)变量,变量的索引(reference)为常量,即存储地址不变,存储的值(value)可变

使用道具 举报

回复
论坛徽章:
39
ITPUB元老
日期:2005-10-13 10:38:002012新春纪念徽章
日期:2012-01-04 11:49:54ITPUB官方微博粉丝徽章
日期:2011-07-04 09:42:062011新春纪念徽章
日期:2011-02-18 11:43:352011新春纪念徽章
日期:2011-01-04 10:36:17ITPUB9周年纪念徽章
日期:2010-10-08 09:34:022010新春纪念徽章
日期:2010-03-01 11:07:27祖国60周年纪念徽章
日期:2009-10-09 08:28:002009新春纪念徽章
日期:2009-01-04 14:52:282008新春纪念徽章
日期:2008-02-13 12:43:03
96#
发表于 2003-8-10 21:04 | 只看该作者
哪里啊?共享一下?
最初由 yafeng 发布
[B]找到了侯捷的翻译,偶不翻了。 [/B]

使用道具 举报

回复
论坛徽章:
70
三菱
日期:2014-01-17 10:00:292014年世界杯参赛球队: 智利
日期:2014-06-05 11:54:32马上加薪
日期:2014-04-07 17:03:21马上有钱
日期:2014-02-25 21:39:36马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有车
日期:2014-02-18 16:41:11
97#
发表于 2003-8-12 20:28 | 只看该作者

使用道具 举报

回复
论坛徽章:
0
98#
发表于 2003-9-3 14:40 | 只看该作者
此类经典书籍是要精读……

使用道具 举报

回复
论坛徽章:
39
ITPUB元老
日期:2005-10-13 10:38:002012新春纪念徽章
日期:2012-01-04 11:49:54ITPUB官方微博粉丝徽章
日期:2011-07-04 09:42:062011新春纪念徽章
日期:2011-02-18 11:43:352011新春纪念徽章
日期:2011-01-04 10:36:17ITPUB9周年纪念徽章
日期:2010-10-08 09:34:022010新春纪念徽章
日期:2010-03-01 11:07:27祖国60周年纪念徽章
日期:2009-10-09 08:28:002009新春纪念徽章
日期:2009-01-04 14:52:282008新春纪念徽章
日期:2008-02-13 12:43:03
99#
发表于 2003-9-4 09:15 | 只看该作者
偶连不上啊:(
最初由 yafeng 发布
[B]www.houjj.com [/B]

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
100#
发表于 2003-9-15 03:25 | 只看该作者
最初由 yafeng 发布
[B]www.houjj.com [/B]


www.jjhou.com

http://64.78.49.204/
有英文版下载

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表