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
Does java runtime require a license?
What are the types of sockets in java?
Java is Pass by Value or Pass by Reference?
Explain the scope or life time of class variables or static variables?
What is difference between protected and private?
Explain OOPs concept.
What is merge sort in java?
In the below example, what will be the output?
What are local variables?
What is the purpose of garbage collection in java?
Can a class be private or protected in java?
List some oops concepts in java?
Is 0 an even number?
What are the restrictions imposed by a Security Manager on Applets?.
Why java is platform independent? Explain.