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

Author Question: Which of the following statements are true? (Read 28 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
YES! Correct, THANKS for helping me on my review


fatboyy09

  • Member
  • Posts: 358
Reply 3 on: Yesterday
Thanks for the timely response, appreciate it

 

Did you know?

One way to reduce acid reflux is to lose two or three pounds. Most people lose weight in the belly area first when they increase exercise, meaning that heartburn can be reduced quickly by this method.

Did you know?

Opium has influenced much of the world's most popular literature. The following authors were all opium users, of varying degrees: Lewis Carroll, Charles, Dickens, Arthur Conan Doyle, and Oscar Wilde.

Did you know?

About 3.2 billion people, nearly half the world population, are at risk for malaria. In 2015, there are about 214 million malaria cases and an estimated 438,000 malaria deaths.

Did you know?

The first successful kidney transplant was performed in 1954 and occurred in Boston. A kidney from an identical twin was transplanted into his dying brother's body and was not rejected because it did not appear foreign to his body.

Did you know?

For high blood pressure (hypertension), a new class of drug, called a vasopeptidase blocker (inhibitor), has been developed. It decreases blood pressure by simultaneously dilating the peripheral arteries and increasing the body's loss of salt.

For a complete list of videos, visit our video library