what is difference between throw and throws in exception?
Answer Posted / bhavannarayana ch
To handover an Exception object to the JVM Programatically by using the "throw"
To delegate the responsibility of Exception handling to the caller by using "throws"
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the meaning of variable in research?
what is the major difference between linkedlist and arraylist in java?
How to access arraylist elements in java?
Differentiate between static and non-static methods in java.
List primitive java types?
Is this valid in java ? Can we instantiate interface in java?
How are multiple inheritances done in Java?
How to store image in arraylist in java?
What technique is carried out to find out if a particular string is empty?
What are the two main uses of volatile in Java?
What is multi-catch block in java?
Implement a stack with push (), pop() and min() in O(1) time.
How many arguments can a method have java?
What are the important methods of java exception class?
How do I start learning java?