Multiple choice

Which of the following methods in the DatabaseMetaData retrieves the maximum number of characters this database allows for a column name?

  1. getMaxColumnLength()

  2. getMaxColumnNameLength()

  3. getMaxColNameLength()

  4. getMaxColLength()

  5. getColumnNameLength()

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

This is the correct choice because getMaxColumnNameLength() method is defined in the DatabaseMetaData interface and it retrieves the maximum number of characters this database allows for a column name.