Questions from Starting Out With Java


Q: What is direct recursion? What is indirect recursion?

What is direct recursion? What is indirect recursion?

See Answer

Q: What is a frame? How do you create a frame with

What is a frame? How do you create a frame with Swing?

See Answer

Q: How do you add a layout manager to a container?

How do you add a layout manager to a container?

See Answer

Q: Which layout manager divides a container into regions known as north,

Which layout manager divides a container into regions known as north, south, east, west, and center?

See Answer

Q: Which layout manager arranges components in a row, from left to

Which layout manager arranges components in a row, from left to right, in the order they were added to the container?

See Answer

Q: Which layout manager arranges components in rows and columns?

Which layout manager arranges components in rows and columns?

See Answer

Q: How many components can you have at one time in a BorderLayout

How many components can you have at one time in a BorderLayout region? In a GridLayout cell?

See Answer

Q: The following if statement determines whether choice is equal to â€

The following if statement determines whether choice is equal to ‘Y’ or ‘y’: if (choice == 'Y' || choice == 'y') Rewrite this statement so it makes only one comparison and does not use the ||...

See Answer

Q: How do you prevent the BorderLayout manager from resizing a component that

How do you prevent the BorderLayout manager from resizing a component that has been placed in its region?

See Answer

Q: How can you cause a content pane to be automatically sized to

How can you cause a content pane to be automatically sized to accommodate the components contained within it?

See Answer