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 |
I need some details about an employee. i have only the employee id in my presentation layer(JSP).I entered that ID and click "Show Details" Button. Question is how the JSP pass that id to Controller layer and DAO and what mechanism we are using to retrive data from DB and how the data passed to JSP as a Output. Please explain in detail.
What are the two types of exceptions in java? Which are the differences between them?
What is an array length?
What is the difference between static class and normal class?
What method is used to compare two strings ?
design an lru cache in java?
What are the major advantages of internal iteration over external iteration?
Can we pass null as argument in java?
What are three types of loops in java?
Is c better than java?
What do you mean by the term transient?
What does || mean in vectors?