Execute code after a try…catch block, irrespective of the outcome.
try
}
}
}
|
The “finally” keyword is employed to execute code (in conjunction with exceptions handled by try…catch statements) regardless of whether an exception occurs or not.