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 |
java program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors.
What are the advantages of exception handling?
What is a layout manager and what are different types of layout managers available in java awt?
Which collection allows duplicate values in java?
What are different types of multitasking?
Explain implementation and how is it different from conversion?
Which Math method is used to calculate the absolute value of a number?
What do you mean by constant time complexity?
What is the difference between hashmap and hashtable? What is an interface?
Can we declare a class as static?
What is the meaning of flag day?
What is a deadlock ?