What will happen if we write code like:
try{}catch(exception e)catch(IOException i)
Answer Posted / 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 |
Post New Answer View All Answers
Are primitives objects?
How many techniques can be employed to create a string object?
Describe method overriding
Write a function for palindrome and factorial and explain?
Explain illegalmonitorstateexception and when it will be thrown?
Difference between linkedlist and arraylist.
What are data types in oop?
What are the principle concepts of oops?
How can you handle java exceptions?
What is method in java ?
What is boolean keyword in java?
What is the difference between procedural and object-oriented programs?
What do you understand by the term string pool?
What is the string function?
How do you declare a string variable?