Questions from Starting Out With Java


Q: How do you change the background color of a component? How

How do you change the background color of a component? How do you change the color of text displayed by a label or a button?

See Answer

Q: Why do most businesses use a DBMS to store their data instead

Why do most businesses use a DBMS to store their data instead of creating their own text files or binary files to hold the data?

See Answer

Q: What Java data types correspond with the following SQL types?

What Java data types correspond with the following SQL types? - INTEGER - INT - REAL - CHARACTER - VARCHAR - DOUBLE

See Answer

Q: What is a ResultSet object?

What is a ResultSet object?

See Answer

Q: Look at the following SQL statement. SELECT Id FROM Account

Look at the following SQL statement. SELECT Id FROM Account What is the name of the table from which this statement is retrieving data? What is the name of the column that is being retrieved?

See Answer

Q: Assume that a database has a table named Inventory, with the

Assume that a database has a table named Inventory, with the following columns? 1. Write a SELECT statement that will return all of the columns from every row in table. 2. Write a SELECT statement tha...

See Answer

Q: What is the purpose of the LIKE operator?

What is the purpose of the LIKE operator?

See Answer

Q: What is the purpose of the % symbol in a character pattern

What is the purpose of the % symbol in a character pattern used by the LIKE ­operator? What is the purpose of the underline ( _ ) character?

See Answer

Q: How can you sort the results of a SELECT statement on a

How can you sort the results of a SELECT statement on a specific column?

See Answer

Q: Assume that the following declarations exist: final String DB_

Assume that the following declarations exist: final String DB_URL = "jdbc:derby:CoffeeDB” ; String sql = "SELECT * FROM Coffee"; Write code that uses these String objects to get a database connection...

See Answer