blob: 53bbae8c7a9f62663866f60f6d4293f668b653bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package test1;
import java.io.IOException;
class Howard4 implements HowardHome {
int n = 0;
public Object create() throws IOException {
if (n == 1)
throw new IOException();
else
return "howard4";
}
}
interface HowardHome {
Object create() throws IOException;
}
class Howard2 {
Object lookup(String n) { return new Howard4(); }
}
public class Howard extends Howard2 {
private Object _remote;
public int run() {
return 0;
}
}
|