Questions from Starting Out With Java


Q: In what package is the Color class?

In what package is the Color class?

See Answer

Q: In what package is the Pane class?

In what package is the Pane class?

See Answer

Q: What shape method do you call to change the color of a

What shape method do you call to change the color of a shape’s outline?

See Answer

Q: What shape method do you call to change a shape’s

What shape method do you call to change a shape’s fill color?

See Answer

Q: What shape method do you call to rotate a shape around its

What shape method do you call to rotate a shape around its center?

See Answer

Q: It is said that a recursive algorithm has more overhead than an

It is said that a recursive algorithm has more overhead than an iterative algorithm. What does this mean?

See Answer

Q: A pet store sells dogs, cats, birds, and hamsters

A pet store sells dogs, cats, birds, and hamsters. Write a declaration for an enumerated data type that can represent the types of pets the store sells.

See Answer

Q: What is a base case?

What is a base case?

See Answer

Q: What is a recursive case?

What is a recursive case?

See Answer

Q: What causes a recursive algorithm to stop calling itself?

What causes a recursive algorithm to stop calling itself?

See Answer