logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What is the importance of finally block in exception handling ?


  • Correct Answer
  • A finally block will always be executed, whether or not an exception is actually thrown Even in the case where the catch statement is missing and an exception is thrown, the finally block will still be executed Last thing to mention is that the finally block is used to release resources like I/O buffers, database connections, etc 


  • Technology problems


    Search Results


    • 1. Should a main() method be compulsorily declared in all java classes?
    • Discuss
    • 2. Which of the following is not the member of class?

    • Options
    • A. Virtual function
    • B. Static function
    • C. Friend function
    • D. Const function
    • Discuss
    • 3. What do you mean by friend function in C++ ?
    • Discuss
    • 4. What is the default return type of a function ?

    • Options
    • A. int
    • B. void
    • C. float
    • D. char
    • Discuss
    • 5. Which is more effective while calling the functions?

    • Options
    • A. call by value
    • B. call by reference
    • C. call by pointer
    • D. none
    • Discuss
    • 6. How can you make sure the web application is fit for release ?
    • Discuss
    • 7. What is the difference between Tags and HTML Elements ?
    • Discuss
    • 8. Explain static and dynamic memory allocation with an example each.
    • Discuss
    • 9. Why static methods cannot access non static variables or methods?
    • Discuss
    • 10. What is String Args in Java?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment