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

Author Question: Which of the following statements are true? (Read 25 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
Wow, this really help


anyusername12131

  • Member
  • Posts: 327
Reply 3 on: Yesterday
:D TYSM

 

Did you know?

According to animal studies, the typical American diet is damaging to the liver and may result in allergies, low energy, digestive problems, and a lack of ability to detoxify harmful substances.

Did you know?

Asthma cases in Americans are about 75% higher today than they were in 1980.

Did you know?

The use of salicylates dates back 2,500 years to Hippocrates’s recommendation of willow bark (from which a salicylate is derived) as an aid to the pains of childbirth. However, overdosage of salicylates can harm body fluids, electrolytes, the CNS, the GI tract, the ears, the lungs, the blood, the liver, and the kidneys and cause coma or death.

Did you know?

Drug abusers experience the following scenario: The pleasure given by their drug (or drugs) of choice is so strong that it is difficult to eradicate even after years of staying away from the substances involved. Certain triggers may cause a drug abuser to relapse. Research shows that long-term drug abuse results in significant changes in brain function that persist long after an individual stops using drugs. It is most important to realize that the same is true of not just illegal substances but alcohol and tobacco as well.

Did you know?

GI conditions that will keep you out of the U.S. armed services include ulcers, varices, fistulas, esophagitis, gastritis, congenital abnormalities, inflammatory bowel disease, enteritis, colitis, proctitis, duodenal diverticula, malabsorption syndromes, hepatitis, cirrhosis, cysts, abscesses, pancreatitis, polyps, certain hemorrhoids, splenomegaly, hernias, recent abdominal surgery, GI bypass or stomach stapling, and artificial GI openings.

For a complete list of videos, visit our video library