zoukankan      html  css  js  c++  java
  • 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()就可以让发生异常后从新创建新的线程处理

  • 相关阅读:
    AJAX请求头Content-type
    原 layer父子页面交互
    layer.closeAll()无法关闭弹窗的解决办法之一
    成员函数的重载,覆盖与隐藏
    const限定符用法汇总
    构造函数和析构函数的调用时机
    MFC 消息映射、分派和传递
    C++对象模型
    函数指针与虚函数表
    数据类型与内存映像
  • 原文地址:https://www.cnblogs.com/williamzhao/p/2410624.html
Copyright © 2011-2022 走看看