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 t a t i c void main ( S t r i n g [ ] a r g s )
{
// c r e a t e t h e d a t a b a s e manager f o r an Access d a t a b a s e
DatabaseManager dbManager =
new DatabaseManager ( ” sun . j d b c . odbc . JdbcOdbcDriver ” ,
” j d b c : odbc : p e r s o n ” ) ;
// t e s t a q u e r y
dbManager . t e s t Q u e r y ( ” S e l e c t LastName , Age From Person ” +
”Where Age < 30 ” , 2 ) ;
}
```

Computer Science & Information Technology

You might also like to view...

A(n) ____ key is a field or collection of fields that could function as the primary key, but was not chosen to do so.

A. candidate B. artificial C. surrogate D. foreign

Computer Science & Information Technology

One way to copy a formula is to click on the cell that contains the formula, click ________, and then click Copy

A) Cut B) Edit C) Range D) Formula

Computer Science & Information Technology

A ________ is a form that is embedded within another form, the main form, and is used to view, enter and edit data that is related to data in the main form

A) split form B) subform C) subdatasheet D) linked form

Computer Science & Information Technology

What characteristics are needed to consider a hashing algorithm secure?

What will be an ideal response?

Computer Science & Information Technology