Question 14
Consider the Java code given below.
Assume the file "data.txt" already contains the following text:
Welcome to Java Programming
import java.io.*;public class Test { public static void main(String[] args) { try { FileInputStream fis = new FileInputStream("data.txt"); int i; while ((i = fis.read()) != -1) { if (i == 'a') { System.out.print('*'); } else { System.out.print((char) i); } } fis.close(); } catch (IOException e) { System.out.println("File not found!"); } }}Choose the correct option regarding the output of the program: