javac), tools, and JRE needed to write and compile code.
- JRE (Java Runtime Environment): Libraries and JVM required to run Java bytecode.
- JVM (Java Virtual Machine): Executes bytecode (.class) across operating systems.public class VariablesDemo {
public static void main(String[] args) {
// Primitive types:
int defaultTimeoutMs = 5000;
double implicitWaitSec = 2.5;
boolean isHeadless = true;
char statusIndicator = 'P';// Reference types:
String targetUrl = "https://targetqa.com";
final int MAX_RETRIES = 3; // Constant
System.out.println("Running test against: " + targetUrl);
}
}