WhichtwocodefragmentsaremostlikelytocauseaStackOverflowError?()

A.int[]x={1,2,3,4,5};for(inty=0;y<6;y++)System.out.println(x[y]); B.staticint[]x={7,6,5,4};static{x[1]=8;x[4]=3;} C.for(inty=10;y<10;y++)doStuff(y); D.voiddoOne(intx){doTwo(x);}voiddoTwo(inty){doThree(y);}voiddoThree(intz){doTwo(z);} E.for(intx=0;x<1000000000;x++)doStuff(x); F.voidcounter(inti){counter(i);}

时间:2024-05-06 17:57:52

相似题目