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.
You might also like to view...
According to operator precedence, the correct order of mathematical operations is ________
A) addition or subtraction; multiplication or division; parentheses B) parentheses; addition or subtraction; multiplication or division C) parentheses; multiplication or division; addition or subtraction D) multiplication or division; addition or subtraction; parentheses
Which of the following programs can be scheduled to delete unwanted compressed old files?
A. Disk Management B. Check Disk C. Disk Cleanup D. Disk Defragmenter