Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

throw and throws keyword in java

Throws keyword used for handling exceptions. 
  Where do you use it? Methods signature. 
 If you want to handling right away in selenium or Api use “throws” keyword.
Throw is creating an exception. Basically there are doing opposite. 
Where do you use it? We use it with in the block.
 
PREVIOUS NEXT
Tagged: #throw #throws #keyword #java
ADD COMMENT
Topic
Name
3+7 =