Questions from Starting Out With Java


Q: When the user runs a program in a text-based environment

When the user runs a program in a text-based environment, such as the command line interface, what determines the order in which things happen?

See Answer

Q: What is an event handler?

What is an event handler?

See Answer

Q: In what package is the EventHandler interface?

In what package is the EventHandler interface?

See Answer

Q: What method do you call to register an event handler with a

What method do you call to register an event handler with a Button control?

See Answer

Q: In what package is the TextField class?

In what package is the TextField class?

See Answer

Q: Write a method named getName that prompts the user to enter his

Write a method named getName that prompts the user to enter his or her first name, and then returns the user’s input.

See Answer

Q: How do you retrieve the text that the user has entered into

How do you retrieve the text that the user has entered into a TextField control?

See Answer

Q: Describe three different techniques discussed in this chapter for writing event handlers

Describe three different techniques discussed in this chapter for writing event handlers.

See Answer

Q: What are the names of the regions in a BorderPane container?

What are the names of the regions in a BorderPane container?

See Answer

Q: Describe the three BorderPane constructors.

Describe the three BorderPane constructors.

See Answer