问题详情
执行下列方法method(),返回值为()。 public int method { int num=6; if (num>8) return num; num=7; }
A.编译出错
B.6
C.7
D.8
请帮忙给出正确答案和分析,谢谢!