In how many ways we can do exception handling in java?



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

Post New Answer

More Core Java Interview Questions

What is a line break?

1 Answers  


what is request processor?

1 Answers   Virtusa,


State one difference between a template class and class template.

1 Answers   HAL,


how can u create the object with out new operator

2 Answers  


Why convert an applet to an application?

1 Answers  


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

7 Answers   Huawei, IBM,


What is the intersection and union methods?

1 Answers  


What is the difference between static and non-static variables in java programming?

1 Answers  


Objects or references which of them gets garbage collected?

1 Answers  


What is an error in java?

1 Answers  


What is regex in java?

1 Answers  


What is unicode full form?

1 Answers  


Categories