Salesforce Developer Interview
Salesforce Developer Interview
Salesforce Developer Interview
1. What is Inheritance?
2. What is the use of virtual keyword for a class?
3. What the use is of extends keyword?
4. What is a constructor?
5. How is Constructor overloading?
6. What is the difference between static and non-static variables?
7. What are final variables?
8. What are transient variables?
9. What are final static variables?
10. What is difference between with sharing class and without sharing class?
11. What is system context and what is user context?
12. What is encapsulation?
13. How to do you restrict the access on the data in the class?
14. What is the use of override keyword?
15. What is wrapper class?
16. What is Type casting?
17. What is Type conversion?
18. How to call static methods in the Apex class?
19. In how many ways we can call Apex class?
20. What is interface?
21. What is abstract class?
22. Name some of the predefined interfaces?
23. How to make an apex class visible to user?
1. What is an array?
2. Elements in the array are referred using?
3. What are the drawbacks of array?
4. What is a List ?
5. What is the internal data structure?
6. Will List maintain the insertion order?
7. Are the duplicates are allowed in the list ?
8. How the elements in the list are referred ?
9. What is difference between add() and addAll() methods?
10. what is the difference between add(index,ele) and set(Index,ele)
11. How the size of a list?
12. How to sort the elements in the list in the ascending order?
13. How to sort the elements in the list in the descending order?
14. What is set?
15. What is the internal data structure?
16. Will set allow duplicates?
17. Will the set maintains insertion order?
18. How the elements in the set are referred ?
19. What is the use of contains(ele), ContainsAll(eles)
20. What is the use of retainAll(ele)
21. Can we sort the elements in the set ?
22. What is Map?
23. Can a key be duplicate?
24. Can a value be a duplicate?
25. What is keyset () in map?
26. What is values() on map?
1. What is SOQL?
2. What is the return type of SOQL?
3. What is dynamic soql?
4. PWhen do you use Database. Query()?
5. How many records can be fetched using SOQL?
6. What is LIMIT in SOQL?
7. What is OFFSET key in the SOQL?
8. What is the limit of OFFSET ?
9. What is ALL ROWS in SOQL?
10. How to fetch the records from Recycle bin using SOQL?
11. What are Parent to child SOQL query?
12. What is Child to Parent SOQL?
13. Name some date function in SOQL?
14. What are Aggregate functions?
15. What is the difference between count() and Count(fieldname) in SOQL?
16. What is Aggregate Result?
17. Where do you use AggregateResult?
18. What are the governing limits on SOQL?
19. How to reduce the no of SOQL in a transaction?
20. How to write SOQL using MAP?
21. What is the Advantage of writing SOQL using MAP?
22. What is SOSL?
23. What is the return type of SOSL?
24. How many records are fetched using SOSL?
25. Can we write Aggregate functions using SOSL?
26. How to lock the records from being edited by others using SOQL?
27. What are alias name in SOQL?
28. What is the use of Aggregate function SOQL queries in salesforce?
29. What is the use of group by clause in SOQL?
30. Can we write group by clause in SOSL?
4) DML
5) Future Methods
6) Batch Apex
7) Schedule Apex
8) Schema
1. What is schema?
2. What is sobjectType?
3. What is getSobjectType?
4. What is Schema.Describesobjectresult?
5. How to create a new Sobject Dynamically?
6. What is the use of get Global Describe();
7. How to fetch all the subjects in the salesforce ?
8. How to fetch fields from Given Sobject?
9.How to fetch picklist entries from the given picklist fields?
10. How to fetch the tabs info from Schema?
11. Where do we use the schema programming ?
10) Triggers
1. What is workflow?
2. When workflow is invoked?
3. What is a Trigger?
4. What is the difference between Trigger and workflow?
5. What are Trigger events?
6. What are trigger context variables?
7. If we insert 100 records how many times the trigger is called?
8. What is Bulk Trigger?
9. What is the difference between the Trigger. New and Trigger .old in the Update triggers?
10. What is the difference between Trigger. New and Trigger.NewMap in update trigger?
11. When we perform the operation using before Trigger and after Trigger which you prefer?
12. Can we write SOQL query to fetch set the records which are in Trigger. New in before
trigger?
13. Can we write DML on the List of records which are in Trigger. New in before triggers?
14. What are recursive triggers?
15. How to handle recursive Triggers?
16. How many triggers we can write on the same object with same trigger event?
17. What is order of execution of trigger?
18. Will the field update done on the workflow call the update Triggers?
19. Can we call the batch apex from the trigger?
20. Can we call the schedule apex from the trigger?
21. Can we call the future methods from the triggers?
22. Can we send an email using Trigger?
23. What are the good practices that you have to maintain while writing trigger?
24. How to disable the triggers for a particular user?
25. Are the triggers are fired while loading the data using dataloader?
26. How to run the triggers only when the data comes from external system?
15) Scripting
16) Jquery
1. What is jquery?
2. Did you work with any scripting framework?
3. How to use jquery in the Visualforce?
4. In how many ways we can include jquery in Visualforce page?
5. How to refer to visualforce components using jquery?
6. Name some functions in the jQuery?
7. What is auto complete functionality in jQuery?
8. What is toggle functionality?
9. Name one scenario where you have used jquery in your project?
10. Why did you prefer to use jquery than javascript in the above context ?
11. Did you create any custom components using Jquery?
12. How to use ajax with Jquery?
1. Creation of Product line items page with AutoComplete with pdf generation using
Ajax,Jquery,SOQL,pdf pages ?
2. Creation of reports using visualforce pages and aggregate functions in soql?
3. We have built opportunity and lead pages to meet our business requirements ?
4. Created custom buttons on the list view pages to perform mass operations?