1. public class ForBar  {  2. public static void m...
单选题

1. public class ForBar  {  2. public static void main(String []args)   {  3.   int i = 0, j = 5;  4. tp: for (;;)  {  5. i ++;  6. for(;;)  7. if(i > --j) break tp;  8. }  9. system.out.printIn(“i = ” + i + “, j = “+ j);  10. }  11. }   What is the result?()  

发布日期:2020-04-10

A.The program runs and prints “i=1, j=0”

B.The program runs and prints “i=1, j=4”

C.The program runs and prints “i=3, j=4”

D.The program runs and prints “i=3, j=0”

E.An error at line 4 causes compilation to fail.

F.An error at line 7 causes compilation to fail.

热门试题

热门资讯

    暂无相关推荐~

分享给好友

分享到朋友圈

取消

使用浏览器的分享功能,把这篇文章分享出去

确定