Java??static???????ú??÷?????
???????????? ???????[ 2017/2/13 9:40:56 ] ??????????????????? Java
?????????static????????????????????????????????????????????static?????????????????????е????????????????static???????????static???????????????????
????????????????????static ??????
??????????????static?????
??????????????κη??????this ??super???????super ?????й???????????????????
?????????????????????????????static??????????????????static?飬Static ??????????????????Ρ??????????????????????static???????Щstatic????????????static ??????飺
????// Demonstrate static variables??methods??and blocks.
????class UseStatic {
????static int a = 3;
????static int b;
????static void meth(int x) {
????System.out.println("x = " + x);
????System.out.println("a = " + a);
????System.out.println("b = " + b);
????}
????static {
????System.out.println("Static block initialized.");
????b = a * 4;
????}
????public static void main(String args[]) {
????meth(42);
????}
????}
???????UseStatic ?????????е?static??????С??????a???????3??????static ?????(?????????)????b????????a*4 ??12????????main()??main() ????meth() ?????42?????x??3??println ( ) ???????????static????a??b????????????x ??
????????????static ???????????κ?????????????????
??????????ó?????????
????Static block initialized.
????x = 42
????a = 3
????b = 12
????????????????????棬static ?????????????????κζ????????á??????????????????????????????????ɡ????磬??????????????????????static??????????????????????????
????classname.method( )
????????classname ????????????????ж???static????????????????????????????????????????÷?static????????????????static???????????????????????——???????????????????Java ????????????????????????????汾??
????????????????????main() ?У?static????callme() ??static ????b?????????????????
????class StaticDemo {
????static int a = 42;
????static int b = 99;
????static void callme() {
????System.out.println("a = " + a);
????}
????}
????class StaticByName {
????public static void main(String args[]) {
????StaticDemo.callme();
????System.out.println("b = " + StaticDemo.b);
????}
????}
??????????ó?????????
????a = 42
????b = 99
????static???????????????class???????????????
???????????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 ??????