Java??static??????÷????
???????????? ???????[ 2015/12/9 10:50:28 ] ??????????????? ???????????
????4. static ???:
??????????(inner interface)?????????static??????static??????????????????? ??????е???:TestInInterface??TestInClass ??????? ???????
????StaticDescription.TestInInterface a = new StaticDescription.TestInClass();
????a.print();
???????????static?????????????? ?????????????????TestInterface??FF??
????5. static ??????:(???????????)
?????????????????????????????????????????????????static???????? ???????????????????????? ????????Χ??????????????????????
class Member {
????static int classVar = 0; //?????
????int instanceVar; //???????
????Member(int instanceVar) {
????this.instanceVar = instanceVar;
????}
????static void setClassVar(int i) {
????classVar=i;
????//instanceVar=i; // ???????????????????????????????
????}
????static int getClassVar() {//????
????return classVar;
????}
????void setInstanceVar(int i) {
????classVar=i; //?????????????????????????????????????
????instanceVar=i;
????}
????int getInstanceVar() {
????return instanceVar;
????}
????}
?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????ж?????????????????????????????????ж????????е??????????????????????????????????????棬?????ж????á???????????????????????????????????????????????;
????Member m1 = new Member();
????Member m2 = new Member();
??????????
????????static??????????????????????????????????????????λ??????m1.classVar; ????????????????????????Member.classVar?????????????????С?
?????????static?????????????????????????????????(??????static??ζ?????????????????洢???????static?????????????????????洢???)?????????static?????????????????????????static?????????????÷???????????κζ?????????????????????????????main()?????????????????????????????????????
????static?????????this?????????static???????????????÷???????????????????????????????????д????κζ????????£??????????????????static?????????????????static????????????????????????????Java?н???????????????????????????static???????????????static??????static??
???????????κη????????static??????????????????????????????????????????static?????????????“??????”????????????????ū???????????????
???????????????????г????????static?????????????????????????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Java???????????Щ???????????????Java????????????????Java?б???Map????????Java Web???????????????Java??????????????д?????Java????????7???????????????????????(java .net ?????)???Java??????????Python??????Java webdriver??λ????????′????е?????Java??д??????????????????Java???????????????JavaScript????????????Java?????????????????? Java???????10??????????????Java?м????????????????java???????ü???????????м???????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????