QuestionQ25

VerifiedPL/SQL Language Fundamentals

Which code block displays the error message “Incorrect price value”?

Explanation

A value that exceeds the precision of a NUMBER(4) declaration raises VALUE_ERROR while the declaration is being elaborated. Such an exception immediately propagates to an enclosing block and cannot be handled by the exception section of the same block. The enclosing block in choice B handles VALUE_ERROR and executes DBMS_OUTPUT.PUT_LINE to display the specified message.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!