Dart
try catch on finally
void main() {
int a = 12;
int b = 0;
int res;
try {
res = a ~/ b;
} on UnsupportedError { // it is used as we know waht error will occur
print('Cannot divide by zero');
} catch (ex) {
print(ex);
} finally {
print('Finally block always executed');
}
}