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
What do you understand by the term string pool?
What is Enum in Java?
What is boolean logic?
What are synchronized methods and synchronized statements in java programming?
Can a method be static?
How is tree Mirroring implemented?
What are the main features of java?
Why is the singleton pattern considered to be an anti pattern?
How is it possible for two string objects with identical values not to be equal under the == operator?
What is the purpose of final keyword and when to use it?
Why string is not thread safe?
What are computer functions?
What is return code?
What are different types of expressions?
What is the relationship between class and object?