What will happen if we write code like:
try{}catch(exception e)catch(IOException i)
Answer Posted / mathi
Ignoring the incorrect syntax of the Try\Catch Block, it
will never reach the IOException portion of the
Catch......the first catch will always be triggered due to
it only Catching type Exception.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Which class contains a method: cloneable or object?
What is the use of beaninfo?
Can we make a constructor final?
What is sorting algorithm in java?
What does localhost mean?
Explain differences between collection api and stream api?
How many arguments can be passed to main ()?
How a variable is stored in memory?
What happens if I remove static from main method?
What is style and indentation?
describe method overloading
Why string objects are immutable in java?
What is meant by final class?
What is default locale java?
What is an interface in java?