what difference between throw and throws in exception
handling.
Answer Posted / narayana reddy
throws indicates what type of exception is thrown by
a particular function, where as throw is used to through
user defined exceptions
| Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
What environment variables do I need to set on my machine in order to be able to run java programs?
What is toarray method in java?
What is hashmap in java?
What is the purpose of abstract class?
Describe what a thread-local variable is in java?
What causes memory leaks in java?
Differentiate between the constructors and methods in java?
Where is const variable stored?
What are the procedures?
Write a java program to check if a number is prime or not?
What are the two categories of data types in the java programming language?
What is final modifier?
What is array sorting in java?
why java does not support unsigned keyword?
What is the r character?