COMP274 Week 6 Homework – Guaranteed 100% score

Lab Price = $10
Please feel free to send us your queries at:
Payment Methods

Add to Cart

View Cart

Problem Statement

COMP 274
Week 6 Homework

Reading Assignment:


Chapter 13 – Sections 1 thru 7

Chapter 19

Homework Questions

1. What is the difference between throwing an exception and catching an exception?

2. How does a method declare that it can throw an exception? How does it actually throw an exception? Use Java code to illustrate your answer.

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:\temp\mydata.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:\temp\mydata.out.

13. What is the difference between sequential access and random access?

Relevant Material
* If you want to purchase multiple products then click on “Buy Now” button which will give you ADD TO CART option.Please note that the payment is done through PayPal.
* You can also use 2CO option if you want to purchase through Credit Cards/Paypal but make sure you put the correct billing information otherwise you wont be able to receive any download link.
* Your paypal has to be pre-loaded in order to complete the purchase or otherwise please discuss it with us at
* As soon as the payment is received, download link of the solution will automatically be sent to the address used in selected payment method.
* Please check your junk mails as the download link email might go there and please be patient for the download link email. Sometimes, due to server congestion, you may receive download link with a delay.
* All the contents are compressed in one zip folder.
* In case if you get stuck at any point during the payment process, please immediately contact us at and we will fix it with you.
* We try our best to reach back to you on immediate basis. However, please wait for atleast 8 hours for a response from our side. Afterall, we are humans.
* Comments/Feedbacks are truely welcomed and there might be some incentives for you for the next lab/quiz/assignment.
* In case of any query, please donot hesitate to contact us at
* MOST IMPORTANT Please use the tutorials as a guide and they need NOT to be used for any submission. Just take help from the material.
******************************************** Good Luck ***************************************************
Payment Details


Lab Price = $10
Please feel free to send us your queries at:
Payment Methods

Add to Cart

View Cart

Privacy Policy
We take your privacy seriously and will take all measures to protect your personal information.
Any personal information received will only be used to fill your order. We will not sell or redistribute your information to anyone.
Refund Policy
Incase you face any issues with the tutorial, please free to contact us on
We will try our best to resolve the issue and if still persists we can discuss for a refund in case its required.

Leave a Reply