Question: java hw make sure the answer is 100% correct thanks in advanced 2. Write a program to implement the file copy function (1) Use the


java hw
make sure the answer is 100% correct
thanks in advanced
2. Write a program to implement the file copy function (1) Use the FileInputStream class to read the content from the source file (assuming this file is D:java source.txt), and use the FileOutputStream class to write the content to the destination file target dat (assuming the destination file is in the E: java directory). (2) In addition, the program is required to correctly handle the exceptions that may be caused by reading and writing the file and the file should be closed after the file is copied
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
