Explain what happens when an output file is opened in Java.
What will be an ideal response?
In Java, when an output stream is connected to a file, the program always starts with an empty file. If the file you are trying to connect to exists, the contents of the file are deleted before the output stream writes new data to the file. If the file you are trying to connect to does not exist, then a new empty file is created.
Computer Science & Information Technology
You might also like to view...
________ is the process of modifying a presentation by adding and deleting slides or by changing the contents of individual slides
A) Editing B) Saving C) Presenting D) Formatting
Computer Science & Information Technology
?Almost all MANs are based on one of two basic forms of supporting technology: ____ or Ethernet.
A. ?SONET B. ?SOHO C. ?GALNET D. ?SWNET
Computer Science & Information Technology