Create a main method for the class DatabaseManager that prints out the last 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 " ) ;
// test a query
dbManager.testQuery ( " S e l e c t LastName , Age From Person " +
"Where Age < 30" , 2 ) ;
}
```

Computer Science & Information Technology

You might also like to view...

An operating system is a set of programs that controls the computer hardware and acts as an interface with applications.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Which class is automatically instantiated when a table from the Data Sources window is dragged onto the form?

A. TabControl B. BindingNavigator C. BindingStrip D. MenuStrip

Computer Science & Information Technology