摘要: 对于学习static我们先来看两个例子://Example1Tst.java,nomain()methodpackagecom.blogchina.qb2049;publicclassTst{static{System.out.println("111111");}}运行结果为:111111Exceptioninthread"main"java.lang.NoSuchMethodError:main同样的道理看第二个例子://Example2TFrame.java,nomain()methodpackagecom.blogchina.qb2049;imp 阅读全文
posted @ 2011-06-29 11:38 往事如风似过往 阅读(8093) 评论(1) 推荐(4) 编辑