Adding throws keyword with multiple exceptions (#21142)

pull/34277/head
tasmainawolf 2018-11-10 00:10:01 +08:00 committed by Paul Gamble
parent d967ae5134
commit fb7f531718
1 changed files with 8 additions and 0 deletions

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();
}
```