《Java2核心技术<卷Ⅰ>基础知识(第6版)》的原文摘录

  • The compiler doesn’t know the exact type of the setFirst method but can call it with any object of type Manager, Employee , or Object , but not a subtype such as Executive . However, if you call getFirst , there is no guarantee about the type of the returned object. You can only assign it to an Object. (查看原文)
    hongjn 1赞 2012-04-25 04:11:00
    —— 引自第542页
  • 它将Welcom.java编译成Welcom.class,并发送到Java虚拟机。 (查看原文)
    tjefferson 2013-11-18 16:32:06
    —— 引自第17页
  • java.math.BigInteger 1.1 (查看原文)
    tjefferson 2013-11-20 19:03:03
    —— 引自第74页
  • 数组to必须有足够空间存放拷贝的元素。 (查看原文)
    tjefferson 2013-11-20 19:10:55
    —— 引自第77页
  • 由类构造(construst) (查看原文)
    tjefferson 2013-11-20 19:14:34
    —— 引自第88页
  • 特别需要说明,如果一个类使用了这样的方法,当对象不再使用时一定要调用它。 (查看原文)
    tjefferson 2013-11-20 19:20:46
    —— 引自第128页
  • Just as importantly, if a class you use has such a method, you need call it when you done with the object. (查看原文)
    tjefferson 2013-11-20 19:20:46
    —— 引自第128页
  • 类是对象的蓝图 (查看原文)
    空气未完成 2014-05-18 22:57:21
    —— 引自第88页
  • 首先设计类,然后往每个类中添加方法 (查看原文)
    空气未完成 2014-05-18 22:57:21
    —— 引自第88页
  • 每个进程拥有自己的整套数据,线程则共享数据。 (查看原文)
    Jon 2015-02-02 13:56:41
    —— 引自第620页
  • 在Java中,char类型用UTF-16编码描述一个代码单元。 我们强烈建议不要在程序中使用char类型,除非确实需要对UTF-16代码单元进行操作,最好将需要处理的字符串用抽象数据类型表示。 (查看原文)
    上上 1回复 2016-03-20 18:42:56
    —— 引自第33页
  • getFirstDayOfWeek方法获得当前地区星期的起始日。为了确定所需要的缩进距离,将日历对像的日减1,直到一个星期的第一天为止。 int firstDayOfWeek = d.getFirstDayOfWeek(); int indent = 0; while (weekday != firstDayOfWeek) { indent++; d.add(Calendar.DAY_OF_MOTH,-1); weekday = d.get(Calendar.DAY_OF_WEEK); } (查看原文)
    豆友49796659 2016-08-03 09:09:51
    —— 引自第101页
  • getFirstDayOfWeek方法获得当前地区星期的起始日.... (查看原文)
    豆友49796659 2016-08-03 09:09:51
    —— 引自第101页
  • 注释:可以使用下面两种形式声明数组 int[] a; 或 int[] a; .... (查看原文)
    豆友49796659 2016-11-30 08:55:38
    —— 引自第78页
  • class Greeter { public void greet() { ...... } } (查看原文)
    酱糕 2017-08-26 17:35:44
    —— 引自章节:6.3.4