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 are the data types supported by java? What is autoboxing and unboxing?
How to create a custom exception?
What are the advantages of encapsulation in java?
What does int argc char * argv [] mean?
What is variable in java?
Is array an object in java?
What is difference between calling start() and run() method of thread?
What is called module?
What are annotations in java?
What is the use of arraylist class in java?
Is 64bit faster than 32 bit?
What's the default access specifier for variables and methods of a class?
What is anagram in java?
Can an abstract class be a final class?
What do you mean by mnemonics?