How do you ensure API security and avoid data leakage
Ensuring API security and preventing data leakage is critical in any Salesforce integration. Whether you’re exposing or consuming APIs, you must follow best practices around authentication, authorization, encryption, data validation, and monitoring. Key Strategies to Secure Salesforce APIs & Prevent
Selenium | Take UI screenshots when script is executed
During testing a website with Selenium, function given below can take screenshot that can help us in cases like when testcase fails and we need the screenshot to see what happened on UI. Here is function to take screenshot: public
Java | Wide and Narrow typecast in Java with examples
Cast means converting one data type to another data type. Automatic Type Conversion Automatic type conversion means programmer doesn’t need to write code for the cast. In Automatic Type Conversion, narrower data type is converted to broader data type automatically
Java | static variables, instance variables, final and static
Explain with an example which variables should become instance variables and which others should become static. Also when to use final with static and final without static? (JAVA) INSTANCE VARIABLES: Variables that belong to the object of the class and
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
