Adding throws keyword with multiple exceptions (#21142)
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();
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue