please answer with A B C or D 7. (TCO 6) A catch block should contain (Points 6)
ID: 3551334 • Letter: P
Question
please answer with A B C or D
7. (TCO 6) A catch block should contain (Points 6) O code designed to handle an exception. O code designed to throw an exception. O code designed to ignore an exception. O code which is not capable of dealing with an exception 8. (TCO 6 In the catch block below, hat is ArithmeticException? catch (ArithmeticException arithmeticException Syste err print arithmeticException Points 6) O The type of the exception being caught O The name of catch block's exception parameter. O final block. O An exception handler 9. (TCO 6) The purpose of the try bloc k is to (Points: 6) O catch an exception O provide a place to put code that could fail O release any resources acquired in the try block whether an exception occurs or not. execute when an object is no longer needed 10. mco What happens when the the directory where myfile.txt was supposed to be following code executes if myfile.txt does not exist, and you have permission to read and writ FileOutput Stream stream new FileoutputStrea m Points 6) m00 nyfile.txt O A FileNotFoundException is always thrown The file is created and the stream is then created. A stream is created to a dummy file. The JVM will ask you for another file name. 11. (Tco 7) Which of the following creates a data stream for writing primitive data type values to a file Points 60 O DataValueStream stream 3 new new FilelnputStreal yfile.txt mt m O Dataoutput Stream stream new new FileOutputStream(myile.txt")); O Datalnputstream stream new new FilelnputStreal yfile.txt mt m O DataValueStream stream new new FileoutputStrea nyfile.txt m00 mExplanation / Answer
A,A,B,B,B
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.