Ask Question
28 May, 18:28

Write a statement that declares a reference variable abend suitable for holding a reference to an Exception object and initialize it to an Exception object whose message is "ABEND 013".

+1
Answers (1)
  1. 28 May, 20:04
    0
    Exception abend = new Exception ("ABEND 013");

    Step-by-step explanation:

    There are few ways of declaring and initialising a variable.

    First, the variable is Initialised along side the declaration statement.

    Second, the variable is first declared on a line then Initialised on another line.

    The syntax for (1) is

    Variable-type Variable-name = new Variable-type ("value");

    With this, the question becomes

    Exception abend = new Exception ("ABEND 013");
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a statement that declares a reference variable abend suitable for holding a reference to an Exception object and initialize it to an ...” in 📙 Mathematics if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers