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

java is puerly object oriented or not ?

5 Answers  


What are methods of a class?

0 Answers  


What are the Main functions of Java?

0 Answers   Akamai Technologies,


Is there any use of an abstract class which has no methods and no attributes?

1 Answers   Wipro,


Which is better stringbuffer or stringbuilder?

0 Answers  


Why only one Class is public in one file? Explain in details. Thanks in Advance.

12 Answers  


If we don’t want some of the fields not to serialize how to do that?

0 Answers  


What is the purpose of tostring() method in java?

0 Answers  


how to execute main()

4 Answers   Symphony, TCS,


What is tree in java?

0 Answers  


Is null false in java?

0 Answers  


What is the same as procedures?

0 Answers  


Categories