Refine
All questions
351 resultsWhich of these would cause a runtime exception in Java?
Show answer
In traditional file processing systems, the problem where the same information is stored in more than one file is called:
Show answer
Which keyword surrounds the part of the code that might generate an exception?
Show answer
If a file is updated but other files containing similar information are not updated, this results in:
Show answer
Which keyword defines a block containing the exception handler code, executed when a matching exception occurs?
Show answer
A Database Management System (DBMS) is best described as:
Show answer
Which block is ALWAYS executed when a try block exits, whether or not an exception occurred?
Show answer
Which operation on a database involves specifying the data type and constraints of the data to be stored?
Show answer
Which method of the Exception class is used to print/retrieve the error message that caused an exception?
Show answer
Storing data on some storage medium controlled by the DBMS is called:
Show answer
If multiple catch blocks follow a try block, what determines which catch block executes?
Show answer
The description of data (structure and constraints) stored in a database catalogue/data dictionary is called:
Show answer
Which Java package contains the classes needed to connect a Java program to a database (e.g., Connection, Statement, ResultSet)?
Show answer
The DBMS property that allows a change in the structure of data (in the catalogue) without needing to modify the programs that access the data is called:
Show answer
Which class's getConnection() method is used to establish a connection to a database?
Show answer
Which type of DBMS user is responsible for authorizing access, monitoring use, and acquiring software/hardware resources?
Show answer
Which three parameters are typically required to establish a database connection via getConnection()?
Show answer
Which type of DBMS user determines the requirements of end users and develops specifications to meet them?
Show answer
Which method of the Connection object returns a Statement object used for sending SQL statements to the database?
Show answer
Which of these is an advantage of using the DBMS approach?