• 2021-04-14
    下面选项中,可以作为QueryRunner类中query()方法的参数的是()A.()Connection()conn()B.()String()sql()C.()Object[]()params()D.()DataSource()ds
  • Connection()conn;String()sql;Object[]()params()

    举一反三

    内容

    • 0

      【单选题】下面选项中,哪个方法可以用于获取Cookie的值() A: Object getValue() B: String getValue () C: String getValue (String str) D: Object getValue (String str)

    • 1

      在使用C3P0数据源时,能够正确得到DataSource实例对象的代码是() A: DataSource ds = new ComboPooledDataSource(); B: DataSource ds = new ComboPooledDataSource(String name); C: ComboPooledDataSource ds = new DataSource (String name); D: ComboPooledDataSource ds = new DataSource ();

    • 2

      下面选项中,用于获取Cookie名称的方法是( )。 A: Object getName() B: String getName() C: String getName(String str) D: Object getName(String str)

    • 3

      JdbcTemplate类中的List query(String sql, RowMapper rowMapper) 执行String类型参数提供的SQL语句,并通过RowMapper返回一个List类型的结果()

    • 4

      已知,存在 QueryRunner对象 runner , SQL语句: String sql = "select * from user where id=?"; 下面操作中,能实现查询指定记录的选项是()