What will happen if we write code like:
try{}catch(exception e)catch(IOException i)
Answer Posted / sitaram
it is not complied. because first catch having child
exception and last exception having parent exception is must.
correct answer is :
try{
}
catch(IOException i){
}
catch(Exception e){
}
| Is This Answer Correct ? | 19 Yes | 2 No |
Post New Answer View All Answers
Do you know how to reverse string in java?
Can we create an object of private class?
What is a char in java?
What is the full meaning of java?
Print Vertical traversal of a Binary Tree.
Can constructor be synchronized?
What is the hashcode () and equals () used for?
Can we override constructor?
What are recursive functions? Give some examples?
Why array is used in java?
How can we avoid including a header more than once?
How many bytes are a float?
Give us the name of the list layoutmanagers in java?
Is object a data type in java?
23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an