salesforce interview Question Answers part 19

188. How can you prioritize the batch apex jobs pending in the queue.
Ans: This can be done by reordering jobs from set up -> Apex Flex Queue Or can even be done through apex code.
     We can use FlexQueue methods to do this in apex. Example: moveAfterJob,moveBeforeJob etc

189. How many records can a SOSL query return?
Ans: A SOSL Queury can return upto 2000 records only.

190. How many @future method invocations are allowed per apex transaction?
Ans: 50 future method invocation are allowed per apex transaction

191. What is the total heap size limit in case of synchronous and Asynchronous transaction?
Ans: 6MB in case of synchronous and 12 MB in case of Asynchronous transactions

192. How can you track the progress of a scheduled job thorugh apex?
Ans: This can be done query the object CronTrigger which stores all the relevant information like number of times the job was run, next run time etc.

193. How many scheduled jobs can you have at one time?
Ans: We can have upto only 100 jobs scheduled in the org.

194. How can you make callouts in @future methods?
Ans: this can be done by mentioning callout=true

195. How can you expose your class for external application as a REST resource?
Ans: This can be done by using the annotation @RestResource 

196. When is @HttpPut annotated method calles in case of REST?
Ans: This method is calles when a put request is sent which creates or updates.

197. Can a map key hold a null value?
Ans: Yes a key can be a null value.

198. What happens when you add a entry that has the key which is already exists in the map?
Ans: This overwrites the already existing value against that key.

199. Can you have 2 different keys of type string only differing in case?
Ans: Yes this is possible as the keys of type string are case sensitive and can have multiple simialr strings differing only in case.

200. Do test classes count against the apex code limit for the organisation?
Ans : No classes marked as isTest are not counted against apex code limit.

201. What is the use of creating remote site settings?
Ans: A apex callout can succefully call the external site only if it is defined in remote site setting else the callout fails.


  1. Hai Author, Very Good informative blog post,

  2. Sap Training Institute in Noida-Webtrackker is the best SAP training institute in noida. SAP is drastically a completely state-of-the-art element ever to analyze and to excel in it.

  3. Australia best tutor is well known academic portal. Here students can get different kind of Online Assignment help services like that

    1.Online Assignment Help
    2.Instant Assignment Help
    3.Assignment Help
    4.Help with Assignment assignment Help

    And also access that services at any time and any where.

  4. Air conditioning maintenance birmingham- onlyrepaircenter has the 30 Years Experience in Air conditioning maintenance service in birmingham. If you are facing the problem in your air conditioning of any company such as Daikin, Mitsubishi, Carrier, Fujitsu, Toshiba, Airedale, Sanyo, Trane and LG then you can contact to us.

    Air Conditioning Installation birmingham
    Commercial air conditioning repair Birmingham
    residential air conditioning repair birmingham
    Air Conditioning Maintenance birmingham
    window ac repair birmingham


  5. Australia Best Tutor is offering assignment help Services for all universities learners or students at an affordable price. Here All students are joining for best grades and better results.

    Visit Here

    Australia Best Tutor
    Sydney, NSW, Australia
    Call @ +61-730-407-305
    Live Chat @

    Our Services

    Online assignment help
    my assignment help
    assignment help
    help with assignment
    instant assignment help
    Assignment help Services

  6. Thanks for such a wonderful Knowledge Sharing

  7. Thanks for Such a wonderful Knowledge Sharing

  8. Keep up the good work. Your posts are really helpful.