Given the table "products":
| id | name | cost |
|---|---|---|
| 1 | apple | 1.5 |
| 2 | orange | 1.75 |
| 3 | peach | 1.9 |
What is the output of the following code?
try (ResultSet productsResult = statement.executeQuery("select * from products where cost > 1.8")) {
productsResult.next();
int id = productsResult.getInt("id");
String name = productsResult.getString("name");
float cost = productsResult.getFloat("cost");
System.out.printf("%s%n", name);
}