Multiple choice

Which of the following methods in ResultSetMetaData interface retrieves the designated column's database-specific type name?

  1. getColumnName(int column)

  2. getColumnType(int column)

  3. getColumnTypeName(int column)

  4. getColumnNameType(int column)

  5. getColTypeName(int column)

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

getColumnTypeName(int column) method is present in the ResultSetMetaData interface and it retrieves the designated column's database-specific type name. So, this answer is correct.