Finally Clause Assignment

Add the following Finally clause to the previous application. Run your program with an exception. Run it again without an exception.

finally {
    System.out.println("finally block will execute.");
}

results matching ""

    No results matching ""