when you pass the name of a file to the printwriter constructor and the file already exists, it will be…

when you pass the name of a file to the printwriter constructor and the file already exists, it will be erased and a new empty file with the same name will be created. true false

when you pass the name of a file to the printwriter constructor and the file already exists, it will be erased and a new empty file with the same name will be created. true false

Answer

Brief Explanations:

In Java, when you pass the name of a file to the PrintWriter constructor and the file already exists, it will be overwritten (erased in a sense) and a new empty file with the same name is created.

Answer:

True