This website requires Javascript to function properly. Please go to the setting of your web browser and enable Javascript for this website.
×
Loading...
@Sacramento
Mall
Forum (EN)
Groups
Blogs
Topic
Panel View
Tree View
Close
Home
Refresh
Share
Sign In/Sign Up
Mall
Forum (English)
Blogs
Groups
Polls
Rolia Radio
This topic has been archived. It cannot be replied.
工作学习
/
学科技术讨论
/
大猫面试题,只要static int classIndex = 0; 挪个位置结果就是1,2,3了. 我还要说一句,这个问题是微软编译器的bug,既然是静态,就是应该全局静态。不管我写在哪里,他就是应该只有一个阴死疼死
-
interview
(intervieweree);
2014-1-15
{935}
(#8554963@0)
静态是否应该是全局静态,这个得微软来定。用的人只能跟着走。
-
tjhong
(以后再说);
2014-1-15
(#8556235@0)
静态变量应该一直是某个class的静态变量。所以我们使用它时都是XXclass.xxstaticField,这点无论Java还是.net都是一致的。要想用全局静态,应该用单独的class实现Singleton pattern吧。
-
ejbeqhouse
(执手,心安,吾家);
2014-1-15
{642}
(#8556324@0)
Share
More Topics
突发,有纳米发电机之父之称的,美国佐治亚理工王中林教授离美回国,王中林教授是1982年入选中美联合培养物理类研究生计划(CUSPEA),俗称李政道奖学金赴美深造,长期在佐治亚理工担任教授
老程序员第一次用copilot的一点点体会
现在社区游泳池招救生员巡逻,过一会还要不停的点人头,这工作是否很快就被AI代替了,装一个摄像头后面是AI处理系统,这样只招一个等着救人就行了,人头沉下水一定时间立马强光照射,还可以分析水下人的状况来判断是否溺水等
新冠疫苗引发心肌炎? 最新研究这样看
这道几何题有解吗?
枫下论坛主坛
/
工作学习
/
学科技术讨论