Salesforce Related Exams
DEV-501 Exam
A button that is rendered as an HTML input element with the type attribute set to submit, reset, or image, depending on the
An
See also:
In a recruiting application, all users should be able to see positions with a status of Open. If the status is anything other than Open, the position should be visible only to the record owner.
How would a developer accomplish this? Choose 2 answers
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)