3. Explain the difference between a checked exception and an unchecked exception
ID: 1281087 • Letter: 3
Question
3. Explain the difference between a checked exception and an unchecked exception.
4. What happens if an exception does not have a matching catch block?
5. What can a catch block do with the exception object that it receives?
6. What is the purpose of the finally block?
7. What is the difference between text I/O and binary I/O?
8. What happens if you try to create a FileInputStream on a file that does not exist?
9. What happens if you try to create a FileOutputStream on a file that does not exist?
10. What are BufferedInput/OutputStreams and why are they used? Write some Java code to illustrate how to create a BufferedInputStream.
11. Write the line of code you would need to open the file c: empmydata.txt for reading primitive data values from the file such as doubles, floats, ints, etc.
12. Write lines of code to create object input and output streams for the file c: empmydata.out.
13. What is the difference between sequential access and random access?
Explanation / Answer
1.> In certain computer programming languages, such as C++ and Java, an exception -- short for
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.