Ask Question

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".

+3
Answers (1)
  1. Today, 07:53
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers