Given the code fragment: Test.java Which is the result?
Correct Answer: A
Question 114
Given the code fragment: interface SampleClosable { public void close () throws java.io.IOException; } Which three implementations are valid?
Correct Answer: A,C,E
A: Throwing the same exception is fine. C: Using a subclass of java.io.IOException (here java.io.FileNotFoundException) is fine E: Not using a throw clause is fine.
Question 115
Given the code fragment: Which modification enables the code fragment to print TrueDone?