Create a main method for the class DatabaseManager that prints out the name and age of all the people who are under 30 in the database.
What will be an ideal response?
/* main f o r t e s t i n g */
public s tat ic void main ( St r ing [ ] args )
{
// c r e a t e the databas e manager f o r an Access databas e
DatabaseManager dbManager =
new DatabaseManager ( "sun . jdbc . odbc . JdbcOdbcDriver " ,
" jdbc : odbc : per son " ) ;
// t e s t a query
dbManager . tes tQuery ( " S e l e c t FirstName , LastName , Age From Person " +
"Where Age < 30" , 3 ) ;
}
You might also like to view...
In between major new software upgrades, publishers often release software updates, sometimes referred to as ____________________, designed to fix bugs and update security.
Fill in the blank(s) with the appropriate word(s).
A(n) ________ database contains only the tables of a database
Fill in the blank(s) with correct word
Describe the discretionary access control (DAC) model.
What will be an ideal response?
Which of these testing methods is often used in industry certification exams?
A. Computer adaptive test B. Paper-and-pencil test C. Traditional, fixed-length test D. SAT exam format