Multiple choice

Which of the following methods is not defined in ResultSetMetaData interface?

  1. getColumnClassName(int column)

  2. getScale(int column)

  3. isCaseSensitive(int column)

  4. getColumnSize(int column)

  5. isSearchable(int column)

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

This is the correct answer because there is no method named getColumnSize(int column) in ResultSetMetaData interface. The correct method name is getColumnDisplaySize(int column), which indicates the designated column's normal maximum width in characters.