Asynchronous Apex
Asynchronous Apex in Salesforce allows developers to execute operations in a separate thread, enabling tasks to run in the background without impacting the user experience. This approach is particularly beneficial for handling long-running processes, callouts to external systems, and operations
Java | Runtime Polymorphism
There are two types of polymorphism: 1) Compile Time Polymorphism (Method Overloading) – Here it is clear at compile time that which method call in the program will invoke which of the methods. 2) Runtime Polymorphism (Method Overriding) – Here
Java | Some basics
How Java achieves platform independence First thing is what platform independence means? It means compiled Java code can run on any OS without change. Now the question is how Java achieves this? Java achieves this with the help of Bytecode
Java | Benefits of declaring SerialVersionUID in your code
SerialVersionUID is a class invariant that is used to validate that the classes on both sides of the wire are the same. During Serialization it marshals an object and sends it over the stream. During marshalling process, the SerialVersionUID is
AWS Amazon CloudFront – How to enable cache for whole site
AWS Amazon CloudFront is a web service that speeds up serving static and dynamic web content like, .html, .css, .php, and image files and videos. It also integrates with other Amazon Web Services like S3, EC2, Elastic Load Balancer and
Java | ‘default’ method implementation for methods in Java interfaces
Default method, a new concept used for interfaces has been added to Java 8. Purpose: In Java 7 or older, classes implementing an interface were forced to implement each method of the interface. Consider a long running project in which an
Does Java support call by reference?
Java does not support call by reference because in call by reference we need to pass the address and address are stored in pointers. Java does not support pointers and it is because pointers break the security. Java does manipulate
Selenium | how to upload a csv file with Selenium script
In this post I will give an example of how to upload a csv file with Selenium script to a webpage. Below is the screenshot of webpage: Code to automatically select a csv file and then click Submit button is
How to show slanted text and images using CSS?
Slanted text and Images in CSS for different browser is given by transform property in CSS. We need to specify the angle by which to slant the image or text. Angle can be negative or positive. Positive angle inclines the
Salesforce | Trap incoming email and extract email content with attachments in salesforce
Problem: Trap incoming email and extract email content with attachments in Salesforce Solution: Salesforce provides us a mechanism to trap incoming emails on a specific email id and extra email contents including attachments out of it. To achieve this we