Given the following code and FileIn.txt, what will be the ou…

Given the following code and FileIn.txt, what will be the output of FileOut.txt, if any? Assume that the FileIn.txt file exists in the directory where the program is being run and that the program has permission to write files to that directory. Example input and output files: FileIn.txt Here is  some text even more  import java.io.*;import java.util.Scanner;public class FileIO {    public static void main(String[] args) {        try {            File in = new File(“FileIn.txt”);            File out = new File(“FileOut.txt”);            Scanner sc = new Scanner(in);            PrintWriter pw = new PrintWriter(out);            int i = 1;            while (sc.hasNextLine()) {                if ( i % 2 == 0 ) {                    pw.println(“line ” + i + “: ” + sc.nextLine());                    i++;                } else {                    pw.println(sc.nextLine());                    i++;                }            }            pw.close();        } catch (FileNotFoundException fe) {            System.out.println(“File not found”);        } finally {            System.out.println(“Whew, finally done!”);        }    }}

Write an unchecked exception that passes the String message…

Write an unchecked exception that passes the String message “Exception 404: Feelings not found” into the parent constructor. The name of the exception should be your first name followed by “Exception”. (e.g. SuzyException, RickyException, etc.)  Make sure to select the ‘Preformatted’ style from the dropdown so your code is formatted clearly. DO NOT USE THE TAB KEY WHEN WRITING CODE AS YOU MAY ACCIDENTALLY SUBMIT YOUR EXAM. USE THE SPACE BAR INSTEAD.

AFDELING B: KREATIEWE SKRYFWERK BESKRYWENDE OPSTEL (Descript…

AFDELING B: KREATIEWE SKRYFWERK BESKRYWENDE OPSTEL (Descriptive essay) Skryf ʼn beskrywende opstel (descriptive essay) oor een van die volgende onderwerpe. Kies slegs een. (Chose one of the following topics)•    Jy is ʼn superheld met kragte. Vertel hoe jy die aarde gered het.      (You are a superhero with powers. Describe how you saved the earth) of •    Jy is gekies om die president van Suid- Afrika te wees vir ʼn dag. Skryf wat jy als in daardie dag gedoen het.       (You are chosen to be the president for a day. Describe what you did during this day.)    BAIE BELANGRIK:(Very important)•    Gee ʼn naam vir jou opstel      (Give a name for your essay.)•    Maak gebruik van beskrywende woorde.      (Make use of descriptive language)•    Volg die struktuur van ʼn beskrywende opstel      (Follow the structure of a descriptive essay)•    Daar moet gepaste karakters in jou opstel wees wat deeglik beskryf word.       (Your essay must include characters that is clearly described)•    Korrekte spelling is baie belangrik.      (Correct spelling is vital)•    Jou opstel moet tussen 140-160 woorde wees.•    Onthou om ʼn treffende inleiding, middel en slot te hê.       (Include a beginning, middle and end)   Tik jou opstel in die gegewe teksboks. (Type your essay in the text box) (20)