PrepAway - Latest Free Exam Questions & Answers

Category: DEV-501

Exam DEV-501: Apex and Visualforce Controllers

} ~|~ (Select all that apply)

A developer can use optional catch statements for any exception type in a try-catch block.

However, the general exception type, ‘Exception’, must only be used by the last catch() block.
EXAMPLE:
try{
// Some risky code.
}
catch(SomeExceptionType e){
// Handle one exception type.
}
catch(SomeOtherExceptionType e){
// Handle another exception type.
}
catch(Exception e){
// This must be the last catch block.
}
~|~
(Select all that apply)


Page 9 of 24« First...7891011...20...Last »