What is “try and catch” in java

Answers were Sorted based on User's Feedback



What is “try and catch” in java..

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

What is “try and catch” in java..

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

Post New Answer

More Core Java Interview Questions

Explain about serializable interface in java?

0 Answers  


What do you mean by pointer value and address?

0 Answers   Syntel, Visa,


what is synchronization

3 Answers  


How strings are created in java?

0 Answers  


Can a method inside a interface be declared as final?

0 Answers  






Is static a keyword in java?

0 Answers  


Define immutable object?

0 Answers  


What is immutable class in java?

0 Answers  


Is string is a data type?

0 Answers  


Does substring start with 0?

0 Answers  


What is the relationship between a method?s throws clause and the exceptions that can be thrown during the method?s execution?

2 Answers  


Difference between flush() and commit() in hibernate?

2 Answers   Bally Technologies,


Categories