// Enter and Leave a Try Statement with a Termination Handler class NotRaisedException extends Exception {} public class CrossCatch { public static void main(String[] args) { int times = 1; boolean shouldThrow = false; if (0 < args.length) { times = Integer.parseInt(args[0]); } for (int count = 0 ; count < times ; ++count) { try { if (shouldThrow) { throw new NotRaisedException(); } } catch (NotRaisedException e) { // ... } } } }