In how many ways we can do exception handling in java?
Answer / Sudhir Saini
There are two main ways to handle exceptions in Java: try-catch and throws. The try-catch block is used to catch and handle exceptions within the same method, while the throws keyword is used to propagate exceptions up the call stack.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a line break?
what is request processor?
State one difference between a template class and class template.
how can u create the object with out new operator
Why convert an applet to an application?
Write program to print Hello World and print each character address in that string and print how many times each character is in that string? Ex: H: 0 & 1 e:1 & 1 l :2,3,8 & 3 o:4,6 & 2 w:5 & 1 r: 7 & 1 d 9 & 1
What is the intersection and union methods?
What is the difference between static and non-static variables in java programming?
Objects or references which of them gets garbage collected?
What is an error in java?
What is regex in java?
What is unicode full form?