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

Author Question: Which of the following statements are true? (Read 27 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
:D TYSM


scikid

  • Member
  • Posts: 300
Reply 3 on: Yesterday
Great answer, keep it coming :)

 

Did you know?

The first documented use of surgical anesthesia in the United States was in Connecticut in 1844.

Did you know?

Your heart beats over 36 million times a year.

Did you know?

Studies show that systolic blood pressure can be significantly lowered by taking statins. In fact, the higher the patient's baseline blood pressure, the greater the effect of statins on his or her blood pressure.

Did you know?

Fatal fungal infections may be able to resist newer antifungal drugs. Globally, fungal infections are often fatal due to the lack of access to multiple antifungals, which may be required to be utilized in combination. Single antifungals may not be enough to stop a fungal infection from causing the death of a patient.

Did you know?

It is important to read food labels and choose foods with low cholesterol and saturated trans fat. You should limit saturated fat to no higher than 6% of daily calories.

For a complete list of videos, visit our video library