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

Author Question: Which of the following statements is correct to create a DataOutputStream to write to a file named out.dat? (Read 92 times)

panfilo

  • Hero Member
  • *****
  • Posts: 572

Question 1

Which type of exception occurs when creating a DataInputStream for a nonexistent file?
◦ FileNotExistException
◦ FileNotFoundException
◦ FileNotFound
◦ FileNotExist

Question 2

Which of the following statements is correct to create a DataOutputStream to write to a file named out.dat?
◦ DataOutputStream outfile = new DataOutputStream(new FileOutputStream("out.dat"));
◦ DataOutputStream outfile = new DataOutputStream("out.dat");
◦ DataOutputStream outfile = new DataOutputStream(FileOutputStream("out.dat"));
◦ DataOutputStream outfile = new DataOutputStream(new File("out.dat"));


Related Topics

Need homework help now?

Ask unlimited questions for free

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

angrybirds13579

  • Sr. Member
  • ****
  • Posts: 344
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




panfilo

  • Member
  • Posts: 572
Reply 2 on: May 6, 2020
:D TYSM


jojobee318

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

 

Did you know?

Approximately one in four people diagnosed with diabetes will develop foot problems. Of these, about one-third will require lower extremity amputation.

Did you know?

For about 100 years, scientists thought that peptic ulcers were caused by stress, spicy food, and alcohol. Later, researchers added stomach acid to the list of causes and began treating ulcers with antacids. Now it is known that peptic ulcers are predominantly caused by Helicobacter pylori, a spiral-shaped bacterium that normally exist in the stomach.

Did you know?

Hippocrates noted that blood separates into four differently colored liquids when removed from the body and examined: a pure red liquid mixed with white liquid material with a yellow-colored froth at the top and a black substance that settles underneath; he named these the four humors (for blood, phlegm, yellow bile, and black bile).

Did you know?

Autoimmune diseases occur when the immune system destroys its own healthy tissues. When this occurs, white blood cells cannot distinguish between pathogens and normal cells.

Did you know?

People who have myopia, or nearsightedness, are not able to see objects at a distance but only up close. It occurs when the cornea is either curved too steeply, the eye is too long, or both. This condition is progressive and worsens with time. More than 100 million people in the United States are nearsighted, but only 20% of those are born with the condition. Diet, eye exercise, drug therapy, and corrective lenses can all help manage nearsightedness.

For a complete list of videos, visit our video library