In what ways you can handle exception ?

Answers were Sorted based on User's Feedback



In what ways you can handle exception ?..

Answer / niranjanravi

using try--catch--finally
using throws

Is This Answer Correct ?    4 Yes 0 No

In what ways you can handle exception ?..

Answer / ravikiran(aptech mumbai)

using try catch
using throws for delegation of exceptions
using throw to define an exception

Is This Answer Correct ?    3 Yes 1 No

In what ways you can handle exception ?..

Answer / kabita

we can handle exception by using
try
catch
finally
throw
throws.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Core Java Interview Questions

What happens if an exception is throws from an object's constructor?

0 Answers   Amazon,


How would overload a function based on return type?

0 Answers   Genpact,


What is user defined exception?

4 Answers  


How to overcome the exception object reference not set to an instance of object?

0 Answers   Wipro,


Differences between external iteration and internal iteration?

0 Answers  






What are "class access modifiers" in Java?

0 Answers   Genpact,


Scenario: There are 1 to 100 numbers. Each number should be keep in the each column like from A column to Z column ie 1 to 26. From 27 to 52 should be in 2nd row in the excel sheet. This has to be continue till 100. How do you write Java program and what are various methods.

4 Answers   Cap Gemini,


what are the differences between final,finally,finalize methods?

14 Answers   IBM,


What is map and hashmap? also tell the difference.

1 Answers  


What is the reason that multiple inheritance is not possible in java??

1 Answers  


Explain notify() method of object class ?

0 Answers  


What’s the difference between callable and runnable?

0 Answers  


Categories