In what ways you can handle exception ?
Answers were Sorted based on User's Feedback
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 |
Answer / kabita
we can handle exception by using
try
catch
finally
throw
throws.
Is This Answer Correct ? | 1 Yes | 1 No |
What happens if an exception is throws from an object's constructor?
How would overload a function based on return type?
What is user defined exception?
How to overcome the exception object reference not set to an instance of object?
Differences between external iteration and internal iteration?
What are "class access modifiers" in Java?
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.
what are the differences between final,finally,finalize methods?
What is map and hashmap? also tell the difference.
What is the reason that multiple inheritance is not possible in java??
Explain notify() method of object class ?
What’s the difference between callable and runnable?