多选题Which two code fragments are most likely to cause a StackOverflowError?()Aint []x = {1,2,3,4,5};for(int y = 0; y  6; y++)    System.out.println(x[y]);Bstatic int[] x = {7,6,5,4};static { x[1] = 8;x[4] = 3; }Cfor(int y = 10; y  10; y++)doStuff(y);Dvoid 

题目
多选题
Which two code fragments are most likely to cause a StackOverflowError?()
A

int []x = {1,2,3,4,5};for(int y = 0; y < 6; y++)    System.out.println(x[y]);

B

static int[] x = {7,6,5,4};static { x[1] = 8;x[4] = 3; }

C

for(int y = 10; y < 10; y++)doStuff(y);

D

void doOne(int x) { doTwo(x); }void doTwo(int y) { doThree(y); }void doThree(int z) { doTwo(z); }

E

for(int x = 0; x < 1000000000; x++) doStuff(x);

F

void counter(int i) { counter(++i); }

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案