Multiple choice

Which of the following methods is defined in the DatabaseMetaData interface in Java database programming?

  1. getMaxTableLength()

  2. getMaxTables()

  3. getMaxCharLiteralLength()

  4. getMaxUserLength()

  5. getSchema()

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

This is the correct answer because getMaxCharLiteralLength() is defined in the DatabaseMetaData interface and it retrieves the maximum number of characters. This database allows for a character literal.