Questions from Starting Out With Java


Q: Is the following comment a single-line style comment or a

Is the following comment a single-line style comment or a multi-line style comment? /* This program was written by M. A. Codewriter */

See Answer

Q: What is the difference between operating system software and application software?

What is the difference between operating system software and application software?

See Answer

Q: Describe what the phrase “self-documenting program†means

Describe what the phrase “self-documenting program†means.

See Answer

Q: Why is it easier to write a program in a high-

Why is it easier to write a program in a high-level language than in machine language?

See Answer

Q: Briefly explain how the print and println methods are related to the

Briefly explain how the print and println methods are related to the System class and the out object.

See Answer

Q: Assume that the following declaration exists. final String DB_

Assume that the following declaration exists. final String DB_URL = "jdbc:derby:CoffeeDB” ; The string referenced by DB_URL is a database URL. Write a statement that uses this string to get a connecti...

See Answer

Q: What will the following code output? String message = "

What will the following code output? String message = "Have a great day!” ; System.out.println(message.charAt(5)) ;

See Answer

Q: Look at the following declaration. String sql = "SELECT

Look at the following declaration. String sql = "SELECT * FROM Coffee WHERE Price . 10.00” ; Assume also that stmt references a valid Statement object. Write code that executes the SQL statement refer...

See Answer

Q: Write an SQL statement to create a table named Car. The

Write an SQL statement to create a table named Car. The Car table should have the ­columns to hold a car’s manufacturer, year model, and a 20-character vehicle ID number.

See Answer

Q: Write a SELECT statement that will return all of the columns from

Write a SELECT statement that will return all of the columns from every row in table.

See Answer