博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2010年5月15日

摘要: Java中关于静态变量的问题在Java中许多同学都遇到了这样一个问题:public class Test{ public static void main(String args[]) { static int arr[]=new int[15]; System.out.println (arr[1]); }}编译结果是:static int arr[]=new int[15]; 这句不能通过编译... 阅读全文

posted @ 2010-05-15 20:54 子虚 阅读(175) 评论(0) 推荐(0)