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 ) ;
}

Computer Science & Information Technology

You might also like to view...

Two networks can interconnect using a device called a(n) router.

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

Computer Science & Information Technology

Which term best describes "a program that duplicates the look and feel of a particular device"?

A. mobile application B. emulator C. operating system D. smartphone

Computer Science & Information Technology