What will happen if we write code like:
try{}catch(exception e)catch(IOException i)

Answer Posted / jahri

yes it should be child exception to base exception

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between length and length() method in java?

639


What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?

680


When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?

541


What is the longest unicode character?

693


List out benefits of object oriented programming language?

481






Can string be considered as a keyword?

566


Write a program to reverse array in place?

586


Is java free for businesses?

581


What are the data types supported by java? What is autoboxing and unboxing?

546


What are the object and class classes used for?

552


How do you escape a string?

503


What is this keyword used for?

684


difference between byte stream class and character stream class?

4081


List two java ide’s?

608


Write a program to print the pattern given below

493