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
Explain the features of java?
Which package is imported by default?
What is the difference between arraylist and hashset in java?
In a container there are 5 components. I want to display all the component names, how will you do that?
What are the four versions of java?
What is a parameter in matrices?
Explain how to force the garbage collection in java.
How big is a pointer?
Is java a security risk?
How can we make a class singleton?
Explain the difference between call by refrence and call by value?
What is lambda expression in java?
Which is bigger float or double java?
What is the main advantage of passing argument by reference?
Can we override constructors in java?