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 core java?
Is string is a data type?
Is string a data type in java?
Is void a data type?
What are different types of control structures?
Why volatile is used in java?
What is java regex?
What does replaceall do in java?
Explain inner classes ?
What is the syntax and characteristics of a lambda expression? Explain
What are java methods?
What is a default method?
What are the actions that can occur when a thread enters blocked state?
What is boolean law?
Are generics important java?