• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package test1;
2 
3 public class Handler {
4     public int p;
5 
Handler()6     public Handler() {
7 	p = 3;
8     }
9 
m1(int i)10     public int m1(int i) {
11 	p = 1;
12 	try {
13 	    try {
14 		if (i < 0)
15 		    throw new IndexOutOfBoundsException();
16 		else if (i == 0)
17 		    throw new ClassNotFoundException();
18 	    }
19 	    catch (IndexOutOfBoundsException e) {}
20 	}
21 	catch (ClassNotFoundException e) {}
22 
23 	return p;
24     }
25 
test()26     public int test() {
27 	return m1(1) + m1(0) + m1(-1);
28     }
29 }
30