Questions from Starting Out With Java


Q: The program in Code Listing12-1 calls a Stage class’

The program in Code Listing12-1 calls a Stage class’s show method. What does this method do?

See Answer

Q: What is the general difference between an HBox layout container, and

What is the general difference between an HBox layout container, and a VBox layout container?

See Answer

Q: Account Balance A program that calculates the current balance in a

Account Balance A program that calculates the current balance in a savings account must ask the user for the following: The Starting Balance The total dollar amount of deposits made The total dollar a...

See Answer

Q: A program contains the following method definition: public static int

A program contains the following method definition: public static int cube(int num) { return num * num * num; } Write a statement that passes the value 4 to this method and assigns its return value to...

See Answer

Q: If you want to arrange controls in a grid, with rows

If you want to arrange controls in a grid, with rows and columns, what layout container would you use?

See Answer

Q: The Scene class is in what package?

The Scene class is in what package?

See Answer

Q: How do you change the alignment of an HBox container?

How do you change the alignment of an HBox container?

See Answer

Q: What package is the Pos enumeration in?

What package is the Pos enumeration in?

See Answer

Q: How does a command line interface work?

How does a command line interface work?

See Answer

Q: What package contains the Image and ImageView classes?

What package contains the Image and ImageView classes?

See Answer