. a. Develop a class with 2 methods: main() and writeText
The name of the class should be your first name (for example: public class Ali).
The writeText()method includes statements to write some text to the file "C:\myFile.txt". The writeText()method is called from within the main() method.
IOException in writeText()is not handled in any try–catch statement within the method.
Instead, this exceptionis handled in the main()method by a try-catch statement.
b. Using the class in (a) above as an example, discuss what happens if the code in writeText()method throws an IOException. Justify your answer.
c. What if no handler (i.e. try-catch statements) exists at any level for the above exception

