4 public static void test() {
5 System.out.println("Test1");
7 for (int i=0;i<4;i++) {
10 x=new MyTestClass3(i);
12 } catch (Exception e) {
17 public MyTestClass3(int i) throws Exception {
20 throw new Exception("Exception in constructor");
22 int iarray[]=new int[10];
30 System.out.println("Create new class");
31 MyTestClass3 y=new MyTestClass3(3);
36 public void doSomething() {
37 System.out.println("Something done");
41 public class stubexceptions3 {
43 public static void main(String args[]) {