Variable <X> Might Not Have Been Initialized


This occurs when a local variable declared within a method has not been initialized. It can occur when a variable without an initial value is part of an if statement.
int x;
if (condition) {
    x = 5;
}
System.out.println(x); // x may not have been initialized