Error passed to java Screens need to contain what information
-
variables with abend codes
-
only error codes
-
variables with error code
-
none of the above
Error screens in Java applications need to display both the variables involved and the error code to enable debugging and troubleshooting. Variables provide context about what failed, while error codes identify the specific failure type.
The correct answer is 'variables with error code.' When an error is passed from a back-end (e.g., mainframe/COBOL) program to Java screens, the payload needs to carry both the identifying error information and the associated data context — i.e., the error code together with the relevant variables/fields so the screen can display a meaningful, actionable message. 'Only error codes' is too limited because a bare code without accompanying variables/context cannot render a useful screen message. 'Variables with abend codes' is incorrect because abend (abnormal-end) codes are a mainframe system-failure concept, not the application-level error information Java screens consume; using error codes (application-level) is the standard pattern. 'None of the above' is wrong since a valid option exists. Hence 'variables with error code' best fits.