Services
Discover
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Big Java Early Objects
Exam 11: Input/Output and Exception Handling
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 81
Multiple Choice
Which of the following statements about the try/finally statement is NOT true?
Question 82
Multiple Choice
When reading words with a Scanner object, a word is defined as ____.
Question 83
Multiple Choice
Assuming that the string input contains the digits of an integer, without any additional characters, which expression obtains the corresponding numeric value?
Question 84
Multiple Choice
Select the missing expression in the code fragment below.The method should continue to prompt the user for a valid integer value until one is entered.The method returns the final value entered.
Question 85
Multiple Choice
Consider the following code snippet. Scanner inputFile = new Scanner("dataIn.txt") ; Which of the following statements is correct?
Question 86
Multiple Choice
What is recommended if the standard library does not have an exception class that describes your particular error situation?
Question 87
Multiple Choice
Which of the following statements about a PrintWriter object is true?
Question 88
Multiple Choice
Consider the following code snippet. Scanner inputFile = new Scanner("hoursWorked.txt") ; Which of the following statements is correct?
Question 89
Multiple Choice
Which of the following is the correct syntax for creating a File object?
Question 90
Multiple Choice
The PrintWriter class is an enhancement of the ____ class.
Question 91
Multiple Choice
Assume inputFile is a Scanner object used to read data from a text file that contains a series of double values.Select an expression to complete the following code segment, which reads the values and prints them in standard output, one per line, in a field 15 characters wide, with two digits after the decimal point.
Question 92
Multiple Choice
Which exception class should you use from the standard library if you want to thrown an exception when there are insufficient funds in a bank account to cover a withdrawal?
Question 93
Multiple Choice
Your program must read in an existing text file.You want the program to terminate if any exception related to the file occurs.Which of the following indicates the correct code for the header of the main method?
Question 94
Multiple Choice
Select an expression to complete the following statement, which is designed to construct a PrintWriter object to write the program output to a file named dataout.txt. PrintWriter theFile = _______________________;