1.下面哪个方法可以用来获取一个使用InputStream访问的文件的字节数?(B) A length() B available() C size() D getSize()
2.Which of the following is not an advantage of Java exception handling?(B) A Java separates exception handling from normal processing tasks. B Exception handling improves performance. C Exception handling makes it possible for the caller’s caller to handle the exception. D Exception handling simplifies programming because the error-reporting and error-handling code can be placed at the catch block.
3.Given:
class Voop { public static void main(String[] args) { doStuff(1); doStuff(1,2); } // insert code here } Which, inserted independently at line 6, will compile?(A) A static void doStuff(int… doArgs) { } B static void doStuff(int[] doArgs) { } C static void doStuff(int doArgs…) { } D static void doStuff(int… doArgs, int y) { }