Ask Question

Write the definition of a function named panic. The function prints the message "unrecoverable error" and then terminates execution of the program, indicating failure

+2
Answers (1)
  1. 9 June, 05:35
    0
    void panic ()

    {

    System. out. println ("unrecoverable error");

    System. out. println ("failure");

    break;

    }

    Explanation:

    In the above function, i have created a function named panic which is written in java programming language.

    It will print the message unrecoverable error and then it will print failure and later on, I have used a break statement that will end the program execution.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write the definition of a function named panic. The function prints the message "unrecoverable error" and then terminates execution of the ...” in 📗 Computers & Technology 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