what is unreachable code problem in multiple catch statements

Answer Posted / sriragv

Subclass exception handler should come first then the
superclass has to come next. Then only code wil compile
otherwise subclass exception will be never reached results
compilation error.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the string method compareto () do?

535


What is a bubble sort in java?

543


Can java arraylist hold different types?

489


What is derived datatype?

623


What is a linkedhashmap java?

545






Is a method a procedure?

556


What is null mean in java?

620


What is JDBC Driver interface?How can you retrieve data from the ResultSet

1507


What do you mean by a JVM?

559


Can we define constructor in inner class?

535


Explain about map interface in java?

586


How are destructors defined in java?

569


What is replacefirst in java?

568


When do we use hashset over treeset?

529


What is the program development process?

558