Question: To declare a File variable named coursesFile that refers to a file located at / course - app / courses / data / courses
To declare a File variable named coursesFile that refers to a file located at courseappcoursesdatacoursestxt which of these is the most appropriate statement within the main method?
Group of answer choices
public static void mainString args
File coursesFile new Filecourseappcoursesdatacoursestxt;
public static void mainString args
coursesFile Filecourseappcoursesdatacoursestxt;
public static void mainString args
File coursesFile courseappcoursesdatacoursestxt;
public static void mainString args
FilecoursesFilecourseappcoursesdatacoursestxt;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
