Choose the correct option

Report a typo

Select all the options where the code is correct:

a)

try {
    // code that may throw an exception
}
finally {
    // ...
}

b)

try {
    // code that may throw an exception
}
finally (e: Exception) {
    // ...
}

c)

try {
    // code that may throw an exception
}
catch (e: RuntimeException) {
    // ...
}
catch (e: Exception) {
    // ...
}
finally {
    // ...
}

d)

try {
    // code that may throw an exception
}
catch (e: Exception) {
    // ...
}
finally {
    // ...
}
finally {
    // ...
}

e)

try {
    // code that may throw an exception
}
Select one or more options from the list
___

Create a free account to access the full topic