This topic contains a solution. Click here to go to the answer

Author Question: Which of the following statements are true? (Read 26 times)

EY67

  • Hero Member
  • *****
  • Posts: 531

Question 1

Which method can you use to find out the number of the bytes in a file using InputStream?
◦ size()
◦ available()
◦ getSize()
◦ length()

Question 2

Which of the following statements are true?
◦ A java.io.FileNotFoundException would occur if you attempt to create a FileOutputStream with a nonexistent file.
◦ The return value -1 from the read() method signifies the end of file.
◦ You can create a FileInputStream/FileOutputStream from a File object or a file name using FileInputStream/FileOutputStream constructors.
◦ A java.io.FileNotFoundException would occur if you attempt to create a FileInputStream with a nonexistent file.
◦ All methods in FileInputStream/FileOutputStream are inherited from InputStream/OutputStream.


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by EY67 on May 6, 2020

EAN94

  • Sr. Member
  • ****
  • Posts: 307
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 39% of students answer this correctly




EY67

  • Member
  • Posts: 531
Reply 2 on: May 6, 2020
Thanks for the timely response, appreciate it


olderstudent

  • Member
  • Posts: 339
Reply 3 on: Yesterday
YES! Correct, THANKS for helping me on my review

 

Did you know?

The U.S. Preventive Services Task Force recommends that all women age 65 years of age or older should be screened with bone densitometry.

Did you know?

Lower drug doses for elderly patients should be used first, with titrations of the dose as tolerated to prevent unwanted drug-related pharmacodynamic effects.

Did you know?

Acute bronchitis is an inflammation of the breathing tubes (bronchi), which causes increased mucus production and other changes. It is usually caused by bacteria or viruses, can be serious in people who have pulmonary or cardiac diseases, and can lead to pneumonia.

Did you know?

Serum cholesterol testing in adults is recommended every 1 to 5 years. People with diabetes and a family history of high cholesterol should be tested even more frequently.

Did you know?

When blood is exposed to air, it clots. Heparin allows the blood to come in direct contact with air without clotting.

For a complete list of videos, visit our video library