Interview Question

Interview Austin, TX

Given a case and asked to write a bulk trigger optimizing

  the code using data structure in Apex

Interview Answer

1 Answer


list<Account> dataStructureForBulkification = new list<Account>(); for(Account acc : { acc.Description = 'Default Value'; dataStructureForBulkification.add(acc); } update dataStructureForBulkification;

Joe on Sep 29, 2014

Add Answers or Comments

To comment on this, Sign In or Sign Up.