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
How do you read a char in java?
If a class is declared without any access modifiers, where can the class be accessed?
Can a set contain duplicates?
What is an accessor?
What is method and methodology?
What is a nested list?
Is array a class?
What is a local class in java?
Explain some best practices you would apply while using collection in java?
What does t in java mean?
Why is logger singleton?
What is the major drawback of internal iteration over external iteration?
For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green White will have 1 Weight. Red and Green carry no weights. Shortest path is the path with less weight when you add up the weights in the path.
What is Java Package and which package is imported by default?
what is use of functional interface in java 8?