Expand To Get Answers
Quiz 6 : More With File I/O & Exceptions » Week 3 » Inheritance And Data Structures In Java » Re⥃askly
Quiz 6 : More with File I/O & Exceptions
Graded Quiz • 30 min Quiz07 Questions Week 3
Re⥃askly Logo

Quiz 6 : More with File I/O & Exceptions

Graded Quiz • 30 min Quiz07 Questions Week 3
Practice More Quizzes:
Quiz
08 Questions Week 1
Quiz
7 Questions Week 2
Quiz
8 Questions Week 3
Quiz
Quiz
07 Questions Week 4

Q:

Which of the following methods of the Scanner class is used to read integers from a file?

Q:

What will be the output of the following code? public static void main(String[] args) { try { int b = 0; int a = 2 / b; System.out.println(“A”); } catch (ArithmeticException e) { System.out.println(“B”); } finally { System.out.println(“C”); } }

Q:

What data type does the readLine() method in the BufferedReader class return?

Q:

What happens if BufferedReader’s readLine() method has nothing more to read?

Q:

You can have multiple “catch” blocks in a Java try-catch statement.

Q:

Which method of an Exception object prints the error message and information about which line?

Q:

What will happen during execution of a Java program if a negative int is used for an array index?

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Find Questions in This Page: "CTRL+F"