ResultSet的方法getDouble(int index)、getString(int index)和getInt(int index)获取index列的值,index的值是从1开始。( )
举一反三
- 下面哪个方法用于从ServletContent中检索属性值?() A: String getAttribute(int index ) B: String getObject(int index ) C: Object getAttribute(int index ) D: Object getObject(int index ) E: Object getAttribute(String name ) F: String getAttribute(String name )
- 下面类的索引定义或使用正确的是()。 A: class MyClass{ int x; int y; public int this[int index] { get{ if (index==0) return x; else return y; }}} B: class MyClass{ int x; int y; public int this[int index] { set{ if (index==0) x=value; else y=value; }}} C: class MyClass{ int x; int y; public int INDEX[int index] { get{ if (index==0) return x; else return y; } set{ if (index==0) x=value; else y=value; }}} D: class MyClass{ int x; int y; public int this[int index] { get{ if (index==0) return x; else return y; } set{ if (index==0) x=value; else y=value; }}}
- 下面不属于List接口方法的是 A: void add(int index,Object element) B: Object set(int index,Object element) C: Object get(int index) D: Vector(int size)
- :nth-child(index)选择器的index值从0开始
- Given: int index = 1; boolean[] test = new Boolean; boolean foo= test [index]; What is the result?