static的本质是什么,有关它本质的一切都可回答,谢谢了

解决方案 »

  1.   

    static 没有啥本质不本质的 
      

  2.   

    感觉static像虚似世界的活人,
    非static像虚似世界的克隆.
      

  3.   

    static
    [5stAtik]
    adj.
    静态的, 静力的
    静电噪声static
    [5stAtik]
    adj.
    (=statical)
    静态的, 静力的
    【物】静电的
    【无】静态特性的
    固定的, 不活泼的, 变化小的
    使安静的
    static draft
    【机】静力通风
    static discharger
    静电放射器
    static electricity
    静电
    static energy
    静能, 位能
    static induction
    静电感应
    static sensation
    静位觉, 平衡感觉
    static tube
    【化】静止管
    a play full of static characters
    一出全是不活泼人物的戏static
    [5stAtik]
    n.
    [美]【物】天电; 静电; 天电[静电]干扰
    snow static
    降雪静电
    unbalance static
    静电不平衡static-free
    adj.
    无天电干扰的
    statically
    adv.
    静止[态]地static
    stat.ic
    AHD:[st²t“¹k] 
    D.J.[6st#t!k]
    K.K.[6st#t!k]
    adj.
    Having no motion; being at rest; quiescent.
    Fixed; stationary.
    Physics Of or relating to bodies at rest or forces that balance each other.
    Electricity Of, relating to, or producing stationary charges; electrostatic.
    Of, relating to, or produced by random radio noise.
    n.
    Random noise, such as crackling in a receiver or specks on a television screen, produced by atmospheric disturbance of the signal.
    Informal 
    Back talk.
    Interference; obstruction.
    Angry or heated criticism.New Latin staticus [relating to weight] 
    from Greek statikos [causing to stand] 
    from statos [standing] * see  st³- stat“ical
    adj.
    stat“ically
    adv.static
    源自拉丁词 statikos 使站立的static
    dormantinactiveinertsluggishstilldynamic
      

  4.   

    哈哈,楼上的解答都很经典,特别是二楼的同胞,从“根本”上理解了
    static修饰变量时,它所修饰的变量保存在了内存中的数据区,也就是不用实例化一个类直接可以调用数据区中的内容。
    static修饰的代码块和方法保存在代码区,也可以直接调用。
      

  5.   

    呵呵,学习了~!
    原本我只把 static 声明的变量或方法可以随时调用来用~!
      

  6.   

    static用起来是方便
    既可以做缓存,又可以做客户端的Session
    就是不能保证数据的时效性
    而且数据是否被释放不得而知,如下面的程序static Object obj = new Object1();obj = null;obj = new Object2();//Object1是否真的释放了,我在测试的时候没有得到充分的证据
      

  7.   

    1.运行一个程序,你至少要开辟一块静态内存
    2.不需要创建对象,就要访问某个方法而static就是这样一个关键字,声明了static后就表示上述两个目的