What is the result of executing the following code?

```
1 myResultSet = myStatement.executeQuery(
2 "SELECT age FROM people WHERE name = ’Bob’" );
3
4 while ( myResultSet.next() )
5 {
6 displayJTextArea.append( myResultSet.getInt( "age" ) + "\n");
7 }
```


This code executes a query that retrieves the age of every person named Bob in the people table. The code then prints out the age of each person named Bob in the people table.

Computer Science & Information Technology

You might also like to view...

The character that separates tokens is known as a(n) ____________.

a. sentinel b. article c. delimiter d. separator

Computer Science & Information Technology

When the View Side by Side button is active, which of the following does NOT allow you to move between two workbooks?

A) Use the buttons on the task bar B) Pressing the Alt + Tab keys C) Use the Switch Windows button in the Window group D) Clicking on the upper or lower part of the window

Computer Science & Information Technology

How will the spreadsheet model help management make better decisions? How would the business benefit from being able to simulate information on a regular basis?

What will be an ideal response?

Computer Science & Information Technology

The ____ returns the number of characters in a string.

A. isNaN() B. numChars(str) C. number(str) D. length(str)

Computer Science & Information Technology