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

Author Question: Which of the following statements are true? (Read 29 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
Gracias!


scikid

  • Member
  • Posts: 300
Reply 3 on: Yesterday
Excellent

 

Did you know?

About 3% of all pregnant women will give birth to twins, which is an increase in rate of nearly 60% since the early 1980s.

Did you know?

Oxytocin is recommended only for pregnancies that have a medical reason for inducing labor (such as eclampsia) and is not recommended for elective procedures or for making the birthing process more convenient.

Did you know?

In 2012, nearly 24 milliion Americans, aged 12 and older, had abused an illicit drug, according to the National Institute on Drug Abuse (NIDA).

Did you know?

After a vasectomy, it takes about 12 ejaculations to clear out sperm that were already beyond the blocked area.

Did you know?

More than one-third of adult Americans are obese. Diseases that kill the largest number of people annually, such as heart disease, cancer, diabetes, stroke, and hypertension, can be attributed to diet.

For a complete list of videos, visit our video library