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 final access modifier in java?
Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?
Why is java architectural neutral?
How many tetrahedral voids are there in bcc?
Is null a string in java?
How many bytes is a unicode character?
What is an array length?
Does treeset use compareto?
What does .equals do in java?
What are scalar data types?
Which class represents the socket that both the client and server use to communicate with each other?
How is final different from finally and finalize?
When should I use stringbuffer?
What is a parameter in a function?
What is super keyword explain with example?