What should be placed insted of ... in order to read the content of the C:\file.txt file and print it out on the screen? Select all that will work

public class Main {
    public static void main(String[] args) {
        File file = new File("C:\\file.txt");
        try {
            int i;
            while((i = input.read()) != -1){
        catch (Exception ex) {

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Java quizzes
Sign Up Now
or Subscribe for future quizzes