Ask Question
28 October, 06:15

Write an expression whose value is a reference to a newly created PrintWriter object associated with a file named "message. log". The b>PrintWriter object should be created so that existing content in the file is not destroyed or overwritten, but rather output will be appended to any existing content. (Do not concern yourself with any possible exceptions here- - assume they are handled elsewhere.)

+3
Answers (1)
  1. 28 October, 06:19
    0
    The expression of the following question are:

    new PrintWriter ("message. log")

    Explanation:

    In the given statement, the value is the reference of the newly formed function's objects that linked to a file called 'message. log.' The b > PrintWriter object can be formed which is not to destroy or overwrite existing content in the file, but rather than to add result to any existing content. So, that's why firstly, we write "new" built-in keyword then, PrintWriter and pass that file in it.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write an expression whose value is a reference to a newly created PrintWriter object associated with a file named "message. log". The ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers