Variable x may not have been initialized

  • Share
  • Share

Applies to:
NA

Description:
A variable being accessed is not yet initialized

Cause:
An uninitialized variable is being accessed:
int x;
System.out.println(x);

JAVA-Compiler

  1. admin
    March 9th, 2009 at 18:22 | #1

    Initialize the variable before trying to access it.

    Example:
    int x = 0;
    System.out.println(x);

  1. No trackbacks yet.