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

What is Yield() method when we r using this ? tell exactly

2 Answers  


What is a variable in java?

0 Answers  


what is different between static and non static methods ,using example

2 Answers  


What is purpose of keyword void?

0 Answers  


Why do we need public static void main(String args[]) method in Java...?

1 Answers  


What is the maximum size of array in java?

0 Answers  


Why is serialization required?

0 Answers  


What is the main difference between java platform and other platforms?

0 Answers  


What are the advantages of java over C++?

0 Answers  


if arraylist size is increased from initial size what is the size of arraylist...suppose initial is 100 , if i add 101 element what is the size...

10 Answers  


why did you choose your career in IT?

1 Answers   LIC,


What are the two ways of implementing multi-threading in java?

1 Answers  


Categories