在划线处,下列哪些语句是合法的?
//类1定义 package com.ibm.oa.business; import java.io.*; public class Info { public void show() throws NullPointException, IOException { } } //类2定义 package com.ibm.oa.client; import java.io.*; public class NewsInfo extends Info { ---------------------------- { } }
问:在划线处,下列哪些语句是合法的?
A:public void show()
B:public String show() throws NullPointException, IOException
C:public void show() throws IOException
D:public void show() throws NullPointException, Runtime Exception
E:public void show() throws Exception, IOException
F:以上定义都不是。
为什么答案是AC. 而D不对
#笔试题目#