下列代码哪行会出错 1 public void modify 2 int i j k; 3 i = 100; 4 while i 0 5 j = i 2; 6 Systemoutprintln The value of j is + j ; 7 k = k + 1; 8 i--; 9 10A 第 4 行 B 第 6 行 C 第 7 行 D 第 8 行
D 第 8 行,因为变量 k 没有初始化就被使用了。
原文地址: http://www.cveoy.top/t/topic/cHJ7 著作权归作者所有。请勿转载和采集!