Write a statement that declares a reference variable abend suitable for holding a reference to an Exception object and initialize it to an E

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

in progress 0
Faith 2 weeks 2021-11-21T13:37:18+00:00 1 Answer 0 views 0

Answers ( )

    0
    2021-11-21T13:38:47+00:00

    Answer:

    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”);

Leave an answer

45:7+7-4:2-5:5*4+35:2 =? ( )