Method yy not found in class zz

  • Share
  • Share

Applies to:
NA

Description:
This is a syntax error and occurs when the method you are trying to call does not exist

Cause:
a. Static methods messages are sent to objects rather than classes.
b. The method you are trying to access does not exist.
c. A constructor is called in a constructor with the same name
d. Typographical error
System.out.prinln(“My Test”);

JAVA-Compiler , , ,

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

    Send static method messages to classes.

    Example: int x = Math.abs(y);

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

    Check spelling and cases of method names.

  1. No trackbacks yet.