What will happen if we write code like:
try{}catch(exception e)catch(IOException i)
Answers were Sorted based on User's Feedback
Answer / maurice johnson
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 ? | 12 Yes | 3 No |
Answer / jahri
yes it should be child exception to base exception
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / 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 |
is set interface synchronized by default???
What do you understand by synchronization?
What is meant by class loader and how many types are there?
What is the difference between preemptive scheduling and time slicing in java programming?
Does apple use java?
Is it possible to create object with out its default constructor? if possible how? else not possible? justify
How can you share data between two thread in Java?
What is oop in java?
What does indexof return in java?
What is meant by the value of a variable?
Can we use both this () and super () in a constructor?
What are the types of sockets in java?