
public class MainDriver2 {

	public static void main(String[] args) {
		
		try {
			doIt(10);
		} catch (Exception exc) {
			System.out.println("Exception happened");
		} 
		
	}
	
	
	public static void doIt(int count) throws Exception {
		System.out.println("in doIt(): " + count);
		
		if (count == 0)
			return;
		else
			doIt(count-1);	
	}


}
