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 it easy to understand difference between them.
Read more »
Home » core java »
core java interview question
» Difference between throw and throws in Exception handling - Java Example
Langganan:
Posting Komentar (Atom)
0 Response to "Difference between throw and throws in Exception handling - Java Example"
Posting Komentar