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 the this keyword?
what happens when a thread cannot acquire a lock on an object? : Java thread
What is a nullable field?
What is java virtual machine and how it is considered in context of java’s platform independent feature?
Is arraylist sorted in java?
List some important features of java 10 release?
What is the difference between == and === javascript?
Explain importance of throws keyword in java?
Is main is a keyword?
How to perform selection sort in java?
How do you use find and replace?
Why doesn't the java library use a randomized version of quicksort?
State differences between C and Java?
What are heterogeneous objects?
What is a instance variable in java?