|
INTERVIEW QUESTIONS
J2EE
JAVA
DETAILS
Question: What is the functionality of try, catch and finally blocks?
Answer:
|
|
|
Category |
Java Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 8015 users |
Added on |
10/16/2009 |
Views |
70336 |
Rate it! |
|
|
Question:
What is the functionality of try, catch and finally blocks?
Answer:
Source: CoolInterview.com
Hi... In the context of "exception handling" "try", "catch", "finally", "thow" and" throws" plays an anologous role in the java programming language. "try": This block will throw an exception. "catch": This block will catch an exception that is raised in the "try" block. "finally": This block will be execute irrespective of the exception. Source: CoolInterview.com
Answered by: DEVARATHNAM C, KOTAGUDIBANDA(PO),KALAKADA(MD),CHIT | Date:
| Contact DEVARATHNAM C, KOTAGUDIBANDA(PO),KALAKADA(MD),CHIT
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
What is the difference between Abstract class and Interface?
|
View Answer
|
|
What is the difference between overloading and overriding?
|
View Answer
|
|
What is the difference between Hashmap and Hashtable?
|
View Answer
|
|
What is the difference between Vector, Array and Arraylist?
|
View Answer
|
|
What is the difference between final, finally and finalized?
|
View Answer
|
|
What is the difference between String and StringBuffer?
|
View Answer
|
|
What is the difference between exception and error?
|
View Answer
|
|
What is the difference between List, Set and Map?
|
View Answer
|
|
What is the difference between Observable and Observer?
|
View Answer
|
|
What is the difference between Eventlistener and Eventadapter?
|
View Answer
|
|
What is the difference between Classpath and Import?
|
View Answer
|
|
What is the difference between Iterator and Enumeration?
|
View Answer
|
|
What is the difference between Comparable and Comparator?
|
View Answer
|
|
What is the difference between applet and application?
|
View Answer
|
|
What is the difference between applet and swing?
|
View Answer
|
|
What is the difference between HashMap and TreeMap?
|
View Answer
|
|
What is the difference between Reader/Writer classes?
|
View Answer
|
|
What is the difference between InputStream/Outputstream classes?
|
View Answer
|
|
What is the difference between File and RandomFileAccess classes?
|
View Answer
|
|
What is the difference between yielding and sleeping?
|
View Answer
|