Static块详解
摘要:首先,我们先看一段程序,代码如下:public class Father{ public Father() //构造方法 { System.out.println(" 父类构造方法"); } static //静态块 { System.out.println(" 父类静态块"); } //非静态块 { System.out.println(" 父类非静态块"); } public static void...
阅读全文
posted @
2013-09-02 23:26
Bester
阅读(1397)
推荐(3)