1. Open a file for reading 2. Try to read a line from the file within a try block 3. If an IOException occurs during the Attempt catch the exception in a catchblock display an error message containing exception message 4. In a finally block , include code that will be executed regardless of exception -------------------------------------------------------------------------------------------------- import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; public class ExceptionHandlingDemo { public static void main(String[] args) { try { FileReader fileReader = new FileReader("ash.txt"); BufferedReader bufferedReader = new BufferedReader(fileReader); String line = bufferedReader.readLine(); System.out.println("Read line from file: " + line); } catch (IOException e) { System.err.println("An IOException occurred: " + e.getMessage()); } finally { System.out.println("Finally block executed."); } } }