Podcast
Questions and Answers
When multiple handlers match the exception, which catch block is executed?
When multiple handlers match the exception, which catch block is executed?
- The catch block with the most specific matching exception in the list (correct)
- The catch block with the least specific matching exception in the list
- The catch block defined last in the code
- The catch block defined first in the code
Can a friendly method be overridden with a protected method?
Can a friendly method be overridden with a protected method?
- No, it can only be overridden with another friendly method
- Yes (correct)
- No, it cannot be overridden
- No, it can only be overridden with a private method
How can sequential and random access of file contents be performed?
How can sequential and random access of file contents be performed?
- Sequential access using File class and random access using Random Access File class (correct)
- Both sequential and random access using File class
- Both sequential and random access using Random Access File class
- Sequential access using Random Access File class and random access using File class
How can methods declared static be called?
How can methods declared static be called?
Flashcards are hidden until you start studying