What is “try and catch” in java
Answers were Sorted based on User's Feedback
Answer / guest
WHILE DEVELOPING THE PROJECTS ,EXCEPTIONS ARE RAISED.THE
EXCEPTIONS ARE CALLED THE RUN TIME ERRORS.THE EXCEPTIONS ARE
VERY USEFUL WHILE DEVELOPING THE PROJECTS BECAUSE THE
"ROBUST" FEATURE IS COMES FROM THIS EXCEPTION CNCPT.WHILE
DEVELOPING THE PROJECTS, TRY BLOCK IS USEFUL TO THE
EXCEPTION IS LIKELY OCCURED IN THAT BLOCK THT BLOCK IS
PLACED INSIDE THE TRY BLOCK.THAT RAISED EXCEPTIONS ARE CATCH
AT THE CATCH BLOCK.TR7Y BLOCK IS CALLED THE EXCEPTION RAISER
ALSO AND THE CATCH BLOCK IS CALLED THE EXCEPTION HANDL;ER BLOCK
| Is This Answer Correct ? | 16 Yes | 0 No |
Answer / 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 |
What is string syntax?
How do you declare a destructor in java?
use of wrapper classes?
What is data string?
where final and static variable stored?
What is the exact difference in between Unicast and Multicast object ?
Hi am an mca graduate . i have done bsc maths in my degree . every company asks me why you make shift from maths group to computere field . What i need to answer?
What are the access modifiers available in java?
Explain numeric promotion?
why we are calling j2se why not j1se or j3se or j4se..etc is there any reason.. can u please explain it... i shocked in my interview when they asked this question please explain ans
What are the differences between getting and load method?
We have two methods to create methods the threads. 1. Implementing runnable interface 2. Extending to thread class and overriding run method. Among these two which one is better and why? Please explain me in detail.