56. What is sosl?
Ans: select query that can return records of multiple objects as list of lists
57. How many records a select query soql can return?
Ans: as of now the limit is 50000
58. What is the full form of AJAX?
Ans: it stands for assynchronous java and XML
59. Why do we need to write test classes?
Ans: Salesforce does not allow deployment in production if the test coverage is less than 75%
60.How can you show a custom error message in trigger?
Ans: This can be done using addError() method in trigger
61. What is the use of future annotation?
Ans: Future method starts execution when Salesforce has resources available.That is for asynchronous execution.
62. How to identify if a class is a test class?
Ans: test class always begins with @isTest
63. How to convert a blob variable into a string?
Ans Use toString to convert blob into string
64. what are the different methods of batch apex class?
Ans: start method, execute method and finish method
65.What is' with sharing' in apex class code?
Ans: When you use 'with sharing', user's permissions and field-level security are respected. In case of 'without sharing' code runs in system mode.
66. How many records can a sosl return ?
Ans: It can return 2000 records as of now as per governers limit
Ans: select query that can return records of multiple objects as list of lists
57. How many records a select query soql can return?
Ans: as of now the limit is 50000
58. What is the full form of AJAX?
Ans: it stands for assynchronous java and XML
59. Why do we need to write test classes?
Ans: Salesforce does not allow deployment in production if the test coverage is less than 75%
60.How can you show a custom error message in trigger?
Ans: This can be done using addError() method in trigger
61. What is the use of future annotation?
Ans: Future method starts execution when Salesforce has resources available.That is for asynchronous execution.
62. How to identify if a class is a test class?
Ans: test class always begins with @isTest
63. How to convert a blob variable into a string?
Ans Use toString to convert blob into string
64. what are the different methods of batch apex class?
Ans: start method, execute method and finish method
65.What is' with sharing' in apex class code?
Ans: When you use 'with sharing', user's permissions and field-level security are respected. In case of 'without sharing' code runs in system mode.
66. How many records can a sosl return ?
Ans: It can return 2000 records as of now as per governers limit
No comments:
Post a Comment