Question: Indicate whether the following statements are syntactically correct or incorrect. If incorrect, indicate what is wrong with the statement: A. Scanner inputFile=new Scanner (new file
Indicate whether the following statements are syntactically correct or incorrect. If incorrect, indicate what is wrong with the statement:

A. Scanner inputFile=new Scanner (new file (Sample.dat)); *B. File in=new File (new FileReader("in.txt")); C. FileWriter out= new FileWriter (new PrintWriter ("o.txt")); *D. PrintWriter out = new PrintWriter ("out.txt"); E. FileWriter out= new File (new FileWriter ("result.out"));
Step by Step Solution
3.44 Rating (144 Votes )
There are 3 Steps involved in it
The image contains five statements labeled A B C D and E that are intended to create objects in Java ... View full answer
Get step-by-step solutions from verified subject matter experts
