静态化?我没听错吧?
进到公司
后无所事事了几天,便接到任务准备制作公司自己的网站。应该是考察newbie的吧,赫赫
以前就知道这个现象,不过没继续追究过。今儿打开Gmail ,有封Core Java Techologies Tech Tips,正好提到这事儿,摘录如下:
The primitives are equal and the values of the boxed ints are equal. But this time the ints point to different objects. What you have discovered is that for small integral values, the objects are cached in a pool much like Strings. When i and j are 2, a single object is referenced from two different locations. When i and j are 2000, two separate objects are referenced. Autoboxing is guaranteed to return the same object for integral values in the range [-128, 127], but an implementation may, at its discretion, cache values outside of that range. It would be bad style to rely on this caching in your code.相关链接:http://java.sun.com/j2se/1.5.0/docs/guide/language/autoboxing.html
继续阅读一个不怎么舒服的问题……Mozilla Firefox在遇到需要Rich Edit控件中粘贴RTF类型文本时,通常会跳出个让人不爽的对话框,大抵是说“为了您的安全拒绝了对剪切板的访问”等等,点“Yes”就会到一个链接,告诉您怎么解决。
继续阅读By Calvin Austin , January 4, 2005
This article provides five important reasons to move to the Java 2 Platform, Standard Edition (J2SE platform) 5.0. Each reason is supported by data and references to prove that the 5.0 release will reduce development and runtime costs.
继续阅读昨天发布的,唉唉,一不留神没抢到先啊……
J2SE(TM) Development Kit 5.0
Click below to download
Windows Platform
继续阅读