Can multiple catch statements be used in exceptions ?

Answer Posted / pratik

Yah you can use multiple catch statement.But the super
class type object should not come in catch statment before
sub class type object.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the size of boolean variable?

809


What is the biggest integer?

799


What is the difference between preemptive scheduling and time slicing?

814


What is nested class?

747


How to display names of all components in a Container?

2682


Write a program to find the whether a number is an Armstrong number or not?

770


How to reverse string in java?

847


Difference between concurrent hashmap and hashtable and collections

784


What is java oops?

766


How to change value in arraylist java?

731


Which are the two subclasses under exception class?

747


Why is multiple inheritance not supported in java?

760


What are inner classes or non static nested classes in java?

913


Define Multiprogramming and Multiprocessing in java.

783


What is update method called?

867