Multiple choice

Which of the following methods in DatabaseMetaData retrieves the maximum number of columns this database allows in a table?

  1. getMaxColumns()

  2. getMaxColumnsInTable()

  3. getMaxColsInTable()

  4. getMaxCols()

  5. None of these

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

This is the correct answer because getMaxColumnsInTable() method is defined in the DatabaseMetaData interface and it retrieves the maximum number of columns this database allows in a table.