题库 软件开发 题目列表 程序块Session session = null;    try {        sess...
单选题
程序块
Session session = null;
    try {
        session = SessionContext.currentSession();
        session.beginTrans();
        //do something to db
        session.commitTrans();
    } catch (Exception ex) {
        //deal exception
        if (session != null)
            session.releaseTrans();
        }
    }可以正确控制数据库事务
A.

T

B.

F

题目信息
校招真题
-
正确率
0
评论
14
点击