java笔记

 java常用类
Object类
是所有类的父类
toString()打印对象所属类型的名称及其哈希码
boolean equals*(Object obj)比较引用数据类型对象
对于String不光比较类型 还要比较内容
finalize() 在运行时收集器 销毁对象之前 会自动调用的方法
clone() 需要实现Cloneable()接口
与String有关的
String
StringBuffer可以修改的字符序列
StringBuilder 比StringBuffer性能好 ,但多线程中不安全
StringTokenizer将字符串分割成段 1.4后推荐使用String的split()方法 结果 生成string[]
当位数大学int位数 可以使用java.math BigIinteger 来运算

Represents the base class for custom attributes.
表现基类(习惯)属性
public abstract class Attribute : _Attribute

The Attribute class associates predefined system information or user-defined custom information with a target element. A target element can be an assembly, class, constructor, delegate, enum, event, field, interface, method, portable executable file module, parameter, property, return value, struct, or another attribute.

java的虚拟机似乎很聪明 会预先分配好进程
进程级别的调试好像有点问题···结果难以控制,你没办法预知到底哪个线程执行的先后
implements Runnable就可以了 要run()
写了new Thread(new ThreadTest(), " " + i).start()就可以让发生异常后从新创建新的线程处理

posted @ 2008-03-01 17:46  William Zhao  阅读(103)  评论(0编辑  收藏  举报