Undefined variable

  • Share
  • Share

Applies to:
NA

Description:
This is a syntax error and occurs when you commit case-sensitive errors with variables

Cause:
a. Standard typographical error or capitalized letters issue
b. The variable might be declared in the wrong block of code

JAVA-Compiler , ,

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

    Check variable names for typographical error and capitalization issue as variables are case-sensitive.

    Example: String var; is different from String vAr;

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

    Make sure that the variable is declared inside the correct block of code where it is used.

  1. No trackbacks yet.