what difference between throw and throws in exception
handling.
Answer Posted / archana
throws is to handle exception by the system itself
whereas throw used by the user to handled the exception
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is null mean in java?
What is difference between next () and nextline () in java?
Write an algorithm for quick sort?
State the difference between creating string as new () and literal.
What is the difference between replace and replace all?
Are strings immutable in java?
Does substring create a new object?
Is boolean a wrapper class in java?
What's the purpose of using break in each case of switch statement?
Program to Find the second largest element in an array.
What Is Query Throttling in java?
Which api is provided by java for operations on set of objects?
Which package is used for pattern matching with regular expressions?
What is internal variable?
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?