The “Cannot find symbol” compilation error in Java
When a user refers to a variable that hasn't been declared in the application, the "can't find symbol" error occurs. To put it another way, the compiler isn't aware of the variable's declaration. For example: