电子科技大学 / 面向对象程序设计
正确率:100%
Give incompleted method:
//one
{if(unsafe()){//do something …}
else if(safe()){//do the other …}
}
The method unsafe() will throw an IOException, which completes the method of declaration when added at line one。()
A.public void methodName() throws IOException
B.public void methodName() throw IOException
C.public void methodName()
D.public IOException methodName()
参考答案:
佳题速递: