Computer Science, asked by arvind961611222, 1 year ago

What is the difference between throw and throws jeyword in java(try avoid copying from net and state atleast 2 points)


arvind961611222: *keyword

Answers

Answered by DEVESHKHARKWALDEV
0

Difference between throw and throws
keyword on Exception handling in Java is a popular core java interview question. Exception handling being an important part of Java programming language, complete knowledge of all keywords related to exception handling e.g. try,catch, finally, throw and throws is important. Main difference between throw and throws is in there usage and functionality. where throws is used in method signature to declare Exception possibly thrown by any method, throw is actually used to throw Exception in Java code, here is an example of both throw and throws keyword which makes iteasy to understand difference between them.
Similar questions