--%>

Function of Try-Catch-Finally block

Describe the function of Try-Catch-Finally block?

E

Expert

Verified

The try block includes those statements which can cause exception and a catch block handles an exception, if it happens. Catch block includes the statements which have to be executed, when the exception occurs. The finally block always executes, irrespective of the fact that an exception has occurred or not. Finally block is usually used to do the cleanup process. If some exception occurs in a try block, the program control directly transfers to its equivalent catch block and afterwards to a finally block. If no exception occurs into the try block, then a program control transfers directly to a finally block.

   Related Questions in Software Engineering

  • Q : Unlawful act of copying of a page Name

    Name the unlawful act of copying of a page through unauthorized parties in order to filter off the traffic to the other site termed as: (i) Traffic jacking. (ii) Visitor jacking. (iii) View jacking. (iv) Page jacking.

    Q : Problem on Software feasibility Hello

    Hello guys I want your advice. Please recommend some views for above Software Engineering problems. The Software feasibility is mainly based on which of the given: (i) Business and marketing concerns. (ii) Technical prowess of developers. (iii)  Technology, finan

  • Q : Hierarchy of system engineering Mention

    Mention the various views within the hierarchy of system engineering?

  • Q : Concept of workbench Briefly explain

    Briefly explain the concept of workbench?

  • Q : Waterfall Model Supporting arguments

    Describe the Waterfall Model Supporting arguments in brief?

  • Q : Software Engineering Fundamental

    Hi Assignment Team, Please find attachnment of my assignment. Please advise if there is anything unclear in the assignment. Regards, King

  • Q : Evolutionary Development Model I have a

    I have a problem in Software Engineering on Evolutionary Development Model. Please help me in the following question. The model in which the needs are implemented by the classification is: (1) Evolutionary Development Model (2) Iterative Enhancement M

  • Q : Immune system of individual being agent

    Specify the name which is given to the conditions where the immune system of individual forms the agent of diseases? Explain some of the examples of these conditions?

  • Q : Types of antigenic agents constitute

    Explain the types of antigenic agents which constitute the vaccines?

  • Q : Organization of software testing Write

    Write down the normal order of activities in which the software testing is organized? (1) Unit, integration, system and validation. (2) Unit, integration, validation and system.  (3) System, integration, unit and validation.  (4)  None of above.