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 meant by JVM ?

6 Answers  


can we have virtual functions in java?

11 Answers   Wipro,


Explain Linked HashSet

1 Answers  


What is means by DLL file means ? What is the use of DLL file? What are the contents of DLL file?

4 Answers  


What is java instanceof operator?

0 Answers  






What is a Transient Object?

0 Answers   InfoAxon Technologies,


List down the methods and interfaces of collection class in java.

0 Answers  


What about member inner classes?

0 Answers  


Why are pointers not secure?

0 Answers  


why string constant pool in java

2 Answers   TCS,


What is user defined exception?

4 Answers  


Can private method static?

0 Answers  


Categories