I understand about classes, objects, this keyword, constructors, and instantiation. That's the reason I'm asking the question.
Without an object, this expression:
ERROR = setParamForNamedCallableStatement(lstSqlParams, inputDataMap, daoInputMapDef, ncs){};
Should fail to compile, but it doesn't. It's not a static method. This is a Struts 2 project.