A developer has the following code:try {List nameList;Account a;String s = a.Name;nameList.add(s);} catch (ListException le ) {System.debug(' List Exception ');} catch (NullPointerException npe) {System.debug(' NullPointer Exception ');} catch (Exception e) {System.debug(' Generic Exception ');} What message will be logged?
Correct Answer:
B
What are two valid options for iterating through each Account in the collection List
Correct Answer:
AD
A developer needs to write a method that searches for a phone number that could be on multiple object types. Which method should the developer use to accomplish this task?
Correct Answer:
C
What is the result of the debug statements in testMethod3 when you create test data using testSetup in below code?
Correct Answer:
C
Which statement results in an Apex compiler error?
Correct Answer:
D