Can multiple catch statements be used in exceptions ?
Answer Posted / ravikiran(aptech mumbai)
yes multiple exceptions are possible,But the super class of
the particular exeption has to follw the sub claa.Reverse
will not be posible
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Explain abstract class in java?
Is 0 an even number?
What is the benefit of singleton pattern?
Difference between string, stringbuffer and stringbuilder?
How do you declare a variable?
What is the difference between form & report?
Is java same as core java?
What is the purpose of the wait(), notify(), and notifyall() methods in java programming?
What is a conditional equation?
What is the purpose of main function in java?
What is finalize() function in java?
What are static blocks in java ?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
When is the finalize() called? What is the purpose of finalization?
What are streams in java 8?