Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Interview Questions and Answers|
|Ans. In first case the whole loop will terminate as soon as any exception happens in the method calculate ( assuming calculate method is not handling its exception and those are thrown back at the calling method )|
In Second case exception will be caught for individual iteration and hence it wont break the loop and will continue for the next iteration.
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  exception handling  try catch Asked in 1 Companies|
|What are the ways to avoid LazyInitializationException ?|
|How compiler handles the exceptions in overriding ?|
|What things should be kept in mind while creating your own exceptions in Java?|
|Difference between Checked and Unchecked exceptions ?|
|Explain java.lang.OutOfMemoryError ?|
| When do you get ClassCastException?|
What is ClassCastException ?
|If you are given a choice to implement the code to either Insert a Record or Update if already exist, Which approach will you follow ?|
|Explain throw, throws , try and catch in Java ?|
|What is ConcurrentModificationException ?|
|What will happen if we don't have termination statement in recursion ?|