Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/base35/errorbase.net/qa-include/qa-db.php on line 50The method someMethod() is undefined for the type SomeClass - Errorbase

The method someMethod() is undefined for the type SomeClass

+2 votes

This error message appears in java when the method is not defined in that class. Also another common cause of this error is forgetting the new keyword when calling the constuctor of the class.SomeClass variable = SomeClass();If you try to compile the above code, java will definitely throw this error message.