This website requires Javascript to function properly. Please go to the setting of your web browser and enable Javascript for this website.
×
Loading...
@Ontario
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
Elon Musk 带着川普总统奔向火星了。
扔硬币的实验研究
哪位Excel大神帮忙解答一下,一个spreadsheet一表格connection到另外一个spreadsheet,原来的data是数字格式,但是connection以后变成text格式,这是为什么呢?这两天才出现的问题,之前好多年没有过这样的问题。谢谢先
中国政府官方的行为,证明了,苹果手机是世界上最安全的手机。感谢乔布斯先生。感谢库克先生硬是顶住了美国政府的最强大的压力。
老程序员第一次用copilot的一点点体会
枫下论坛主坛
/
工作学习
/
学科技术讨论