Adding throws keyword with multiple exceptions (#21142)

This commit is contained in:
tasmainawolf
2018-11-10 00:10:01 +08:00
committed by Paul Gamble
parent d967ae5134
commit fb7f531718

View File

@ -27,4 +27,12 @@ class Testthrows1{
}
}
```
Multiple exceptions can also be thrown at the same time
***Example:***
```java
void n()throws IOException, InterruptedException{
m();
}
```