Adding throws keyword with multiple exceptions (#21142)
This commit is contained in:
committed by
Paul Gamble
parent
d967ae5134
commit
fb7f531718
@ -27,4 +27,12 @@ class Testthrows1{
|
||||
}
|
||||
}
|
||||
```
|
||||
Multiple exceptions can also be thrown at the same time
|
||||
|
||||
***Example:***
|
||||
```java
|
||||
void n()throws IOException, InterruptedException{
|
||||
m();
|
||||
}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user