what is difference between throw and throws in exception?
Answer Posted / ankur
throw is done manually where as throws is done by jvm
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is java util hashmap?
What is java life cycle?
Why declare Main() method as a static in java ?
What is the use of parse function in java?
Explain the usage of this with constructors?
What is the purpose of declaring a variable as final?
How big is a 32 bit integer?
What are static blocks in java ?
Define linked list and its features with signature?
Differentiate between class and structure.
Is string a class?
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?
Why is singleton class used?
Explain the reason behind ending a program with a system.exit(0)?
What are the super most classes for all the streams?