try { /*assume "conn" is a valid Connection object */ /* assume a valid Statement object is created*/ /* assume rollback invocations will be valid*/ /*use SQL to add 10 to a checking account */ Savepoint s1 = conn.setSavePoint(); /*use SQL to add 100 to the same checking account */ Savepoint s2 = conn.setSavePoint(); /* use SQL to add 1000 to the same checking account */ /* insert valid rollback method invocation here */ } catch (Exception e) { }