Answer Posted / reshma
TRY AND CATCH BLOCKS ARE USED FOR EXCEPTION HANDLING SOMETIMES PROGRAMMER GIVE WRONG INPUT THEN EXCEPTION OCCCUR,IN TRY BLOCK WE LOGIC OF PROGRAM IS WRITTEN WHERE EXCEPTION OCCURED THAT EXCEPTOINS ARE THROWN TO CATCH BLOCK.CATCH BLOCK CATCHES THE EXCEPTION THROWN BY TRY BLOCK.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What is public static void main?
Explain what access modifiers can be used for methods?
Are there structures in java?
How are observer and observable used in java programming?
Can anonymous class have constructor?
What is the use of beaninfo?
Which containers use a flowlayout as their default layout in java programming?
Is char a method in java?
Explain the difference between intermediate and terminal operations in java8?
Java is pass by value or pass by reference? Explain
Is it necessary for the port addresses to be unique? Explain with reason.
Is 0 an irrational number?
What is difference between module and function?
Write a factorial program using recursion in java?
What are conditionals and its types?